BookmarkSubscribeRSS Feed
sasuser101
Obsidian | Level 7

Hi there,

We migrated from sas 9.2 to sas grid.

There is a script we ran in sas 9.2 UNIX as shown below, which ran fine.

 

sas  -set parm1 "database" -set parm2 "schema" -set "parm3" "'user'"  sas_code_file.sas

 

After migrating to SAS Grid and running same code in UNIX, i am getting following error

 

ERROR: The option gridsubmitpgm expects a String value.
ERROR: The command line option gridsubmitpgm requires a value but is followed by -set,
which appears to be a command line option.  If -set is the correct value, wrap it in quotes to get past this error
 
Any suggestions?
1 REPLY 1
Tom
Super User Tom
Super User

Sounds like whatever command your current installation has mapped to "sas" is not really a fully functioning version of the actual sas command.  Usually that is a symptom of a shell script that is trying to pass its command line arguments down to the actual command it is trying to run and using the wrong method such that the individual tokens get confused as one string instead.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 667 views
  • 0 likes
  • 2 in conversation