SAS macro variable for program name

Reply
New Contributor
Posts: 2

SAS macro variable for program name

 Is there a SAS macro variable which can  be used to pull the program names from the DB2 tables, which is valid in  both SAS EG and stored process other than “&_program” and “&_CLIENTTASKLABEL”

Super User
Posts: 1,111

Re: SAS macro variable for program name

If you are using SAS Enterprise Guide, the macro variable _SASPROGRAMFILE can be used. This macro variable returns the full path and filename of the SAS program that is currently being run. This macro variable is available only for SAS program files that are saved on the same server on which your SAS Enterprise Guide session is running.

 

For example:

%put &_SASPROGRAMFILE;
Thanks,
Jag
New Contributor
Posts: 2

Re: SAS macro variable for program name

nio this is not working

Ask a Question
Discussion stats
  • 2 replies
  • 173 views
  • 1 like
  • 2 in conversation