BookmarkSubscribeRSS Feed
RFLinnenbank
Calcite | Level 5
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
3 REPLIES 3
data_null__
Jade | Level 19
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.
RFLinnenbank
Calcite | Level 5
Thanks for the rapid response! I'll work this in as soon as I get the chance!
sarathannapareddy
Fluorite | Level 6
* 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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1081 views
  • 0 likes
  • 3 in conversation