I want to run the programs in the order as shown in the process tree, but NP_NPS_CROSS_CONSIDER QYY_Server.sas runs last, even though it is before a lot of programs and then some of the others fail as they depend on it. As you can see in the attachement, it is running last and the code after that has an "X".
How do you change the order of programs in the Process flow? SAS EG drives me crazy sometimes
What does the process flow diagram look like?
You can "link" programs to one another to control the flow I believe. Right click on the diagrams and link the files such that they represents your flow order.
This works in EG 5.1
Since I had run the project before, all the programs and the numerous data sets that each program created were in the process flow window, and although it was a pain, I dragged and dropped programs in the process flow window in the order that I wanted.
If there is a more efficient way to do this, I'll appreciate it. Thanks!
If I was running this in BASE SAS I'd have one program that called the others using Include statements.
I don't know if that's possible in EG, but worth a try
Linking in Enterprise Guide does not explictly control the order that tasks are performed.
You can explicitly specify the order of tasks by using "ordered lists". From the EG 4.3 Help documentation (sorry about the highlighting):
You can create a list of tasks and programs in the current project that can be run in the order that you choose. You can select objects from more than one process flow. In this way, you can group objects without changing their positions in process flows or their relationships to other objects. Each ordered list is available from the recently viewed items button at the top left of the workspace and in the project tree.
To create an ordered list of tasks and programs
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.