Desktop productivity for business analysts and programmers

SAS EG processus flow

Reply
Super Contributor
Posts: 371

SAS EG processus flow

[ Edited ]

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

PROC Star
Posts: 1,146

Re: SAS EG processus flow

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.

Super Contributor
Posts: 371

Re: SAS EG processus flow

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

 

Super User
Posts: 7,405

Re: SAS EG processus flow

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 7,405

Re: SAS EG processus flow

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
SAS Super FREQ
Posts: 306

Re: SAS EG processus flow

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.

Ask a Question
Discussion stats
  • 5 replies
  • 218 views
  • 0 likes
  • 4 in conversation