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
Rhodochrosite | Level 12

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 2817 views
  • 3 likes
  • 3 in conversation