BookmarkSubscribeRSS Feed
sefri
Fluorite | Level 6

Hi

I have a SAS EG project where I have 4 process flows and a Custom reports that exports reports as pdf files. The 4 process flows need to be processed before the custom reports. When I run the whole project sometimes the custom reports are processed before all 4 process flows are done which makes the project fail and SAS EG crashes.

Whenever I run my project step by step, process flow by process flow I never experience problems.

This leads to my question.

Is there a way where I can setup rules that decide the order of the process flows when I run a project?

Much appreciated!

Steen

7 REPLIES 7
Jay_TxOAG
Quartz | Level 8

Try an ORDERED LIST. It lets you execute Tasks/Programs in the order you want.

File/New/Ordered List

Doc_Duke
Rhodochrosite | Level 12

I would hope there was an easier way; I've got 5 process flows and 65 tasks.  The ordered list does not seem to respect the process flow ordering, however, the documentation is nearly non-existent.

I have placed the process flows in the order that I want them to run in the Project Tree.  That seems to get everything in order EXCEPT the e-mails (as a setup in the process).  I don't do Custom Reports, but suspect it may be a similar glitch.  I have a track open at Tech Support, but owe them a sanitized process flow (my original data has patient information).

Doc Muhlbaier

Duke

Jay_TxOAG
Quartz | Level 8

I don't understand "The ordered list does not seem to respect the process flow ordering". Does this mean it is more difficult to set up the ordered list...or you literally cannot get the ordered list to follow the sequence you want? Just curious...I think the creating the ordered list after you have many, many tasks/programs is way to difficult, but I have got it to execute in the sequence I want.

sefri
Fluorite | Level 6

Thanks, for the replys guys.

I have created a ordered list now and it might be working. However, I see 2 problems with this solution.

1. I cannot make an order based on process flows. In the ordered list I can only choose the task which I almost have 100 of. Fortunately you can add many in go.

2. Since I cannot base my ordered list on process flows then it will not be dynamic. If I add another task then I would have to add it to the list as well.

ChrisHemedinger
Community Manager

You can use EG Automation to script the batch processing of your project and process flows, and have it be somewhat dynamic. 

Resources:

Doing more with SAS Enterprise Guide automation  (blog post)

Not just for scheduling: Doing more with SAS Enterprise Guide Automation (SAS Global Forum paper/sasCommunity.org page)

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

Hi

There is a easier way to change the order of the process flow without programming or using a ordered list.

Go to the process tree on the left hand side and use drag and drop to shift the order of the process flow(s)

I recommend you take the last process flow you want (usually the one where you create the output or script for sending e-mails) and drag it to the top.

Then starts moving the remaining process flows to the top in the order you want them to be.

It will recalibrate the order the want you want it.

Good luck

jblack38
Obsidian | Level 7

The last answer posted by sefri worked for me.

It seems like you have to change the order completely for EG to save your changes.

I have made minor changes to the order before with inconsistent results.

sefri's answer is a simple (yet strange) fix for this.

Jerry

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 7 replies
  • 17800 views
  • 12 likes
  • 6 in conversation