BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vatsy610
Fluorite | Level 6

Hi All,

 

I am a new user in the community and have a question regarding the scheduling of the enterprise guide project.

 

I have created a project and on sas enterprise guide and I would like to schedule it. But the thing is that I have certain tasks which are supposed to be run before other tasks i.e. in running the flow of the project certain tasks come before other tasks.

 

Say for example, I have 5 tasks in the order 1,2,3,4,5 but I would like to run the tasks in this order 1,3,5,2,4 because the running of task 2 depend on the results of task 5.

So, is there any way in which I can schedule my tasks in the order that I would like it to run?

 

Thanks,

vatsy610

1 ACCEPTED SOLUTION

Accepted Solutions
CaseySmith
SAS Employee

Hi @vatsy610,

 

If all of the elements you wish to run (tasks, programs, etc.) are in the same process flow in your EG project, you can control the order of execution with explicit links.  You can create explicit links by clicking a node you want to link from, hover the mouse near one of the edges of the node (until the cursor changes to crosshair), then click and drag the link to the node you want to link to.  Or, you can right the node you wish to link from and click "Link <node> to..." context menu item, then select the node you wish to link to.  Here is an animated example of both:

 

explicitLink.gif

 

If the elements you wish to run are in multiple process flows or in an implicit branch (where you can't change the order), I recommend using an Ordered List instead (ex. File->New->Ordered List), which will allow you to run nodes a la carte in whatever order you wish.

 

By default, scheduling will run the whole EG project (or a process flow in your project if you schedule from a flow).  However, you can alter the VBScript code (that is generated when an EG project is scheduled) to run specific items, such as specific flows in specific orders, etc.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

View solution in original post

4 REPLIES 4
CaseySmith
SAS Employee

Hi @vatsy610,

 

If all of the elements you wish to run (tasks, programs, etc.) are in the same process flow in your EG project, you can control the order of execution with explicit links.  You can create explicit links by clicking a node you want to link from, hover the mouse near one of the edges of the node (until the cursor changes to crosshair), then click and drag the link to the node you want to link to.  Or, you can right the node you wish to link from and click "Link <node> to..." context menu item, then select the node you wish to link to.  Here is an animated example of both:

 

explicitLink.gif

 

If the elements you wish to run are in multiple process flows or in an implicit branch (where you can't change the order), I recommend using an Ordered List instead (ex. File->New->Ordered List), which will allow you to run nodes a la carte in whatever order you wish.

 

By default, scheduling will run the whole EG project (or a process flow in your project if you schedule from a flow).  However, you can alter the VBScript code (that is generated when an EG project is scheduled) to run specific items, such as specific flows in specific orders, etc.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

vatsy610
Fluorite | Level 6

Hi @CaseySmith,

 

Thanks for the prompt solution.

It worked like a charm and my project is running in order that I want it to run.

 

Best,

vatsy610

vatsy610
Fluorite | Level 6

Hi @CaseySmith,

Another question that I have is if I create a project library in sas enterprise guide project, while scheduling do I have to run the project libraries separately or can I schedule those libraries within the project itself?

Best,

vatsy610

CaseySmith
SAS Employee

Glad to hear linking solved your problem with order of execution.

 

As for assigning a project library, regardless of whether you do it via the repeatable Tools->Assign Project Library task, or via explicit SAS code in a program node (ex. libname statement), it will run along with everything else in your project when you schedule a project.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

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
  • 4 replies
  • 1557 views
  • 2 likes
  • 2 in conversation