Wednesday, January 9, 2013

SAS: Get environment variables using %sysget

%let UserID=%sysget(USERNAME);
%put User is &UserID;

Environment variable (USERNAME here) is case sensitive.

No comments:

Post a Comment