DATA Step, Macro, Functions and more

save path name in a macro variable

Reply
Frequent Contributor
Posts: 81

save path name in a macro variable

Hi,

If I use the following code and batch submit it, I would get the path of the SAS program. Is there any easy way I can save this path in a macro variable?

proc options option=sysin; run;

Thanks!
Respected Advisor
Posts: 3,777

Re: save path name in a macro variable

One possibility, that should suffice for batch jobs.

[pre]
%let sysin = %sysfunc(getoption(sysin));
%put NOTE: SYSIN=&sysin;
[/pre]
Frequent Contributor
Posts: 81

Re: save path name in a macro variable

this works for me...thanks so very much.
Ask a Question
Discussion stats
  • 2 replies
  • 129 views
  • 0 likes
  • 2 in conversation