The SAS Output Delivery System and reporting techniques

Pass Parameters to SAS Program while calling it from MS-DOS Command Prompt

Reply
N/A
Posts: 0

Pass Parameters to SAS Program while calling it from MS-DOS Command Prompt

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.
N/A
Posts: 0

Re: Pass Parameters to SAS Program while calling it from MS-DOS Command Prompt

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
N/A
Posts: 0

Re: Pass Parameters to SAS Program while calling it from MS-DOS Command Pro

Thanks David.

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

Regards
Jignesh
N/A
Posts: 0

Re: Pass Parameters to SAS Program while calling it from MS-DOS Command Pro

Thanks David it worked..........
Ask a Question
Discussion stats
  • 3 replies
  • 167 views
  • 0 likes
  • 1 in conversation