Get Name of Program

From sasCommunity
Jump to: navigation, search
  • in session:
%let FileSpec=%sysget(SAS_EXECFILEPATH);
%put FileSpec: &FileSpec.;
  • in batch:
%let FileSpec=%sysfunc(getoption(SysIn));
%put FileSpec: &FileSpec.;
  • in autoexec:
Title1 'Our Company, The Project';
Title2        
%sysfunc(ifc("%sysfunc(getoption(SysIn))" ne ""
            ,%nrstr(%sysfunc(getoption(SysIn)))
            ,%nrstr(%sysget(SAS_EXECFILEPATH))
        )   );
  • references

Conditionally_Executing_Global_Statements

Paper by Art Carpenter to retrieve path information.


--macro maven == the radical programmer 17:06, 16 August 2007 (EDT)