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

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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