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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 858 views
  • 0 likes
  • 3 in conversation