How do I get information about installing SAS?

When I run a SAS program, I want to know where SAS is located and pass that information to the macro. Is there any system option or global variable available?

+2


source to share


3 answers


SASROOT (SAS installation location) must be an environment variable.



%Put sasroot = %sysget(sasroot);

      

+7


source


Note that% sysget () is sometimes case sensitive - see my EG 4.3 (linux) log:

15         %put %sysget(SASROOT);
/opt/sas/env2/lev1/software/SASFoundation/9.2
16         %put %sysget(sasroot);
WARNING: The argument to macro function %SYSGET is not defined as a system variable.

      

Strange, its not register in sas 9.3 (windows) database.

You can see more dialing options using:



%put %sysfunc(getoption(set));

      

Or even the following:

filename set pipe 'set';
data _null_;
  infile set;
  input;
  put _infile_;
run;

      

(works on both Linux and windows)

+1


source


SAS as a "statistical analysis system"? have you tried 'ls -ls which sas

'? if a SAS executable is installed on the system and I can name it as $ sas, maybe it has a soft link to / bin or / local / bin with 'ls -ls', you might know what this soft link is pointing to.

-1


source







All Articles