BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am able to call the SAS program successfully from MS-DOS Command Prompt with following syntax.

sas -sysin

Is there any way to pass parameters to the sas program from command prompt and use these parameters as macro variables in the sas program.
3 REPLIES 3
deleted_user
Not applicable
If you Read The Factual Material which you can get to through http://support.sas.com/onlinedoc/913/docMainpage.jsp, and search on %SysParm and %SysGet you'll find the way to surface environment variables into your program.

A single parameter at invocation can be added by including the syntax -set read documentation in your command line.

Kind regards

David
deleted_user
Not applicable
Thanks David.

I am trying it out, from the samples I have got it should work.

Regards
Jignesh
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
  • 3 replies
  • 1468 views
  • 0 likes
  • 1 in conversation