views:

61

answers:

2

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
'SAS' no longer stands for anything. visit sas.com for more information about SAS.
Chang Chung
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
+6  A: 

SASROOT (the install location of SAS) should be an environmental variable.

%Put sasroot = %sysget(sasroot);
Mark