SAS: Determine programmatically which machine is running SAS
1 answer
%put _automatic_;
is the first place you should look when looking for things like this - it shows all of the auto-defined macro variables, many of which define your work environment.
In this case, it &SYSSCPL.
provides the operating system (in my case X64_7PRO
for Windows 7 64 bit). There is also &SYSHOSTNAME
, which is the "name" of the computer (defined differently for different operating systems).
+5
source to share