Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Windows User ID

Status
Not open for further replies.

hydnrd

Programmer
Mar 26, 2009
2
US
May I kindly ask your assistance how to get system user id and stored in a macro variable?
 
Here is something I use in a lot of my code.

%let UserID=%sysget(USERNAME);

To check to see if it returns what you want, you can run:
%put User is &UserID;

Hopefully this is what you need.

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top