🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 11-08-2018 02:16 PM
(1258 views)
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
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Set the macro variable in the autoexec_usermods.sas of the respective application servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try the macro variable SYSHOSTNAME or SYSTCPIPHOSTNAME.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Super user,
Thank you this works.....