When I batch run a SAS program, I want to know where are SAS installed and pass this information to a macro variable. Is there any system option or global macro variable available?
A:
SAS as 'Statistical Analysis System'? have you tried 'ls -ls which sas
'? if SAS executable is installed on the system and I can call it like $ sas maybe it has a soft link to /bin or /local/bin with 'ls -ls' you can know where that soft-link is pointing to.
Juparave
2009-10-06 16:04:33
'SAS' no longer stands for anything. visit sas.com for more information about SAS.
Chang Chung
2009-10-06 17:18:28
ohh, it's been years (+15) I haven't use SAS, was great then, but after I knew SPPS I simple stop using it
Juparave
2009-10-06 18:53:59
+6
A:
SASROOT (the install location of SAS) should be an environmental variable.
%Put sasroot = %sysget(sasroot);
Mark
2009-10-06 16:09:07