Try to use a pipe filename statement with the dos 'SET' command. You will return info about system variables to a data step and then can parse out the ones you want :
filename env pipe 'set';
data _null_;
infile env;
length vars $ 500;
infile env lrecl=2000;
input vars &;
varname = scan(vars,1,'=');
value = scan(vars,2,'=');
put vars varname value;
run;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.