BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello experts,

Please, could you explain more about the logical order  of running a sas programs(  p1.sas,p2.sas,....pn.sas ) in a sas EG process flow ?

in particuler the process flow "autoexec" ?

Thank you again

5 REPLIES 5
TomKari
Onyx | Level 15

If there's nothing connecting the programs, EG will try to execute them in a left-to-right, top-to-bottom order, but that definitely risks programs being run in the wrong order.

 

The programs should be linked (right click on the program that should be run earlier, click "Link Program to...", and select the program that should run next). By doing this, you can be sure that the programs will run in the correct sequence.

LineMoon
Lapis Lazuli | Level 10

@TomKari : Thank you

Please ,could you give more details about

"EG will try to execute them in a left-to-right, top-to-bottom order"

if you have a fllow process ={ p1.sas, test.sas,p2.sas, 12_test.sas, ...}

 

Kurt_Bremser
Super User

I'd suggest the following:

Create a new project, add some code nodes that just put messages to the log, and then run the process flow.

And then test what effect reordering the nodes in the project tree or the process flow window has.

Kurt_Bremser
Super User

Just checked with EG 7.1.

If nodes are not linked so that the sequence is forced, EG will execute them (within the selected process flow) in the order they were entered; subsequent re-ordering in the process tree will not change that.

CaseySmith
SAS Employee

The intent (and what I observe) is as Tom mentioned...  "If there's nothing connecting the programs, EG will try to execute them in a left-to-right, top-to-bottom order."  (*in the process flow*)  Re-ordering nodes in the process flow should change the order of execution, since EG executes items left-to-right, top-to-bottom order.  Changing the order in the project tree (rather than process flow) has no effect on execution order.


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 5 replies
  • 916 views
  • 0 likes
  • 4 in conversation