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

Hi masters!

 

I have 3 sas projects in EG with extension .egp and i want automatize the start of the last 2 projects. When the first project finish i want to execute the next project and then the next automatically, how can i do this task?

 

I execute the projects in a Server. In EG I tried to call to another projects with the next statement CALL SYSTEM and from this statement i call to the file vbs that I created in the SAS EG scheduler. The log dont show any error but the project was not started

 

Kind regards

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Won't do. Your projects are run by EG on the client, while the code derived from the projects is executed by the SAS sessions on the server.

Once your automation needs reach this stage, you should save everything as code to the server, and run the codes on the server from the server's scheduler (or the company-wide scheduler, if such is present).

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

Won't do. Your projects are run by EG on the client, while the code derived from the projects is executed by the SAS sessions on the server.

Once your automation needs reach this stage, you should save everything as code to the server, and run the codes on the server from the server's scheduler (or the company-wide scheduler, if such is present).

JuanDaniel
Quartz | Level 8

Thx @Kurt_Bremser

 

I have an EG in the server and i try execute as I said. There are any way ef execute a project when another have been finished?

 

Kind regards

AhmedAl_Attar
Ammonite | Level 13

Hi Juan,

 

Check this community entry https://communities.sas.com/t5/SAS-Enterprise-Guide/Re-How-to-schedule-SAS-EG-Project/td-p/204954,

it may answer your question.

 

Most likely for situation like your, you'll have to use a Scheduling Tool that, which could a simple scripting language, to a sophisticated Scheduling Tool with GUI and dependency and errors handling, ....etc.

 

Thanks,

Ahmed 

Kurt_Bremser
Super User

You can use the scheduling options from Enterprise Guide to schedule projects and then run all projects in succession from the scheduler, but you don't run one project from SAS code of another project submitted by EG. That's like scratching your right ear with your left hand through your legs.

 

But I STRONGLY advise to start running SAS code in batch on the server with a proper scheduling tool. Really. I mean it.

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
  • 3755 views
  • 3 likes
  • 3 in conversation