Desktop productivity for business analysts and programmers

Changing run order for programs in process flow.

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Changing run order for programs in process flow.

Currently I have several programs and queries in my project that have to run in a specific order.  If I just click "run project" EG will run in an order that doesn't allow the project to complete properly, as a result I need to go back and rerun certain parts.  Is there a way to specify what order programs and queries run?  I've tried the "link to" functionality but that didnt seem to work.  Any help would be appreciated.

 

For what its worth, my project is a combination of SQL pass through code and SAS EG query builders.  I am also pulling data into my project that resides on different servers and is being joined via query builders.

 

Matt


Accepted Solutions
Solution
‎08-25-2017 01:10 PM
Super User
Posts: 23,958

Re: Changing run order for programs in process flow.


All Replies
Solution
‎08-25-2017 01:10 PM
Super User
Posts: 23,958

Re: Changing run order for programs in process flow.

Have you tried an Orderd List?

http://support.sas.com/kb/26/177.html

 

Occasional Contributor
Posts: 10

Re: Changing run order for programs in process flow.

Thanks...I wasn't aware of this function. Worked great.
Community Manager
Posts: 3,449

Re: Changing run order for programs in process flow.

You can link your task and program nodes together to enforce a sequence.  Right-click on any node, select Link... and then select the next node to link it to.  By adding a link, say from "Program A" to "Query B", you are guaranteed that EG will wait for "Program A" to complete before starting "Query B".

 

userlink.png

 

In the above example, "create_ratings_data" and "Ratings Format" will run before "Calc Days and Ratings" -- good thing, because in that query node I reference the format that was defined in "Ratings Format".

 

You can add as many user-defined links as you need within a process flow.

 

If you need to run tasks from different flows in a defined sequence, then use the Ordered List as @Reeza suggested. 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 1619 views
  • 0 likes
  • 3 in conversation