Hello,
Is possible to return the machine domain from the user?
i can return the hostname using "_CLIENTMACHINE" from SASHELP.VMACRO, but i cant find the Windows domain.
Anyone knows where i can find this?
Thank you
Raphael Gnecco
Hi @RaphaelGnecco ,
You can view all of the SAS macro variables in your current SAS session by selecting Tools > SAS macro variable viewer from the SAS Enterprise Guide menu.
Does that help?
thanks,
Jennifer
Catch the SAS Global Forum keynotes, announcements, and tech content!
sasglobalforum.com | #SASGF
Hi @jennifert , in the SAS macro variable viewer, only have the _CLIENTNAME, but i can´t find the Machine Domain. I try to search in the SASLIBs, but i cannot find that information.
The system macro variable _SASHOSTNAME reports your SAS application server's name including the domain. I don't think there is any similar one for your client PC except _CLIENTNAME which as you say doesn't include the domain.
Why not ask Windows for that information?
On my Windows machine I see environment variables like
USERDNSDOMAIN=xxx.yyy.COM USERDOMAIN=xxx USERDOMAIN_ROAMINGPROFILE=xxx USERNAME=zzz USERPROFILE=C:\Users\zzz
not sure if those are Windows defaults or something our local support team created.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: