BookmarkSubscribeRSS Feed
hulst
Fluorite | Level 6

Hi,

How to reliable schedule 10 large .egp files that run in sequence and are dependent on each other's result?

The default option in EG using a Windows-scheduler-based VBS script on my workstation is not an option.

Also running .BAT script is a no-go.

Converting the .egp files to .sas and importing+scheduling them as an Integration Studio job is a long path to go for... and maintain on the long run.

Any suggestions?

2 REPLIES 2
Patrick
Opal | Level 21

You export the EG projects to SAS code (.sas files). Then you write a script which simply batch submits each of these .sas files as a child process - starting the child processes synchronous.

eg. a very simple form of a .bat file

...sas.bat -sysin 'prog1.sas'

....sas.bat -sysin 'prog2.sas'

This would execute one .sas program after another. Of course in real life you also want to add some error handling and check after each .sas the return code and only continue execution if the program was successful.

You can also write such a script using SAS. Lookup "systask()" together with options "xwait" and "xsync" and statement "waitfor".

If you're having DIS and LSF: You could also create one DI job per EG project. If you don't want to import the .sas file into DIS then you could also simply have a single user written transformation in this DIS job with nothing else than a %include to your .sas file. And then you schedule these DIS jobs as you would with any other.

And what I forgot to say:

I assume your statement that vbs and .bat is no option is mainly due to the fact that you want to run the scripts on the server without involvement of your workstation. So for both the .bat and the SAS script option with "systask()" you would use the OS scheduler (Task Scheduler, Crontab) and start the master script time triggered.

ChrisHemedinger
Community Manager

You can also write your own script to chain together these EGP files, and then schedule a single script.  See this page for links to blogs, a paper, and example scripts:

http://www.sascommunity.org/wiki/Not_Just_for_Scheduling:_Doing_More_with_SAS_Enterprise_Guide_Autom...

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2 replies
  • 2044 views
  • 0 likes
  • 3 in conversation