BookmarkSubscribeRSS Feed
VinayKY
Calcite | Level 5


Hi

Is there a way get the current connected user in a SAS EG Custom Addin?

For example - If user 'xyz' launches an SAS EG session and starts a custom addin task, so is there a way to determine the name of the user who launced the SAS EG session.

I know, I could run a piece of SAS code to get the username by reading results of underlying OS system command, but was wondering whether SAS EG Addin libraries provided some way.

Thanks

Vinay

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

There is a macro variable for that

_CLIENTUSERNAME

Try this google search for more

enterprise guide macro variables

Doc Muhlbaier

Duke

VinayKY
Calcite | Level 5

Thanks, It indeed gives me what I am looking for.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 922 views
  • 1 like
  • 2 in conversation