Hi All,
I am trying to capture the Environment where the Current SAS program is executing.
for EX: if the SAS program is executing in Dev environment need to capture this in a macro variable.
%if env = 10.09.126.4 %then do;
%let Env = Dev ;
%end;
%else %do;
%let env = Prod;
%end;
I want know if we have any Auto macro variables which displays the Environment the SAS code is running.
Thanks
Set the macro variable in the autoexec_usermods.sas of the respective application servers.
Try the macro variable SYSHOSTNAME or SYSTCPIPHOSTNAME.
Hi Super user,
Thank you this works.....
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.