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
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.
@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, ...}
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.
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.
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
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!
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.