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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.