If we run proc setinit
in SAS we can obtain the Site Name and the Site Number.
The Site Number can be easily extracted using &syssite
. Other than redirecting & parsing log output, is there a way to programmatically obtain the Site Name?
I've checked _automatic_
variables, sashelp
datasets, and proc registry
output to no avail.
With pointers from Chris Blake and FriedEgg, I ended up with this solution: