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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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