Help using Base SAS procedures

Finding the execution path, advanced question?

Reply
Occasional Contributor
Posts: 17

Finding the execution path, advanced question?

I managed to find how deal with finding the application's execution path when batch submitting and for running it straight from SAS (9.1.3 by the way), but there appears to be a third type of situation:

When right-clicking the application-file you also get an option "Submit with SAS 9.1". When execution through this option neither SAS_EXECFILEPATH nor SYSIN will be used to store the execution path.
(SYSPROCESSNAME indicates "DMS process" like with running it from SAS)

Is it possible to obtain the execution path even under these circumstances? -changed title to clear things up-


Message was edited by: RFLinnenbank
Respected Advisor
Posts: 3,799

Re: Finding the execution path, advanced question?

Posted in reply to RFLinnenbank
My very small sample and limited testing shows that a FILEREF FLn where n is a number is used with "Submit with SAS 9.1"

Use DICTIONARY.EXTFILES to get info.
Occasional Contributor
Posts: 17

Re: Finding the execution path, advanced question?

Posted in reply to data_null__
Thanks for the rapid response! I'll work this in as soon as I get the chance!
Occasional Contributor
Posts: 5

Re: Finding the execution path, advanced question?

Posted in reply to RFLinnenbank
* Using SASHELP Views ( vextfl) to get the filename or pathname;

*To get the filename only;

data _null_;
set sashelp.vextfl(where=(upcase(xpath) like '%.SAS'));
call symput('program', scan(xpath,-1,'\'));
run;

*To get pathname;

data _null_;
set sashelp.vextfl
(where=(upcase(xpath) like '%.SAS'));
call symput('progrm', xpath);
run;

Read more at: http://studysas.blogspot.com/2009/04/how-to-determine-executing-program-name.html

Sarath
Ask a Question
Discussion stats
  • 3 replies
  • 125 views
  • 0 likes
  • 3 in conversation