Desktop productivity for business analysts and programmers

Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

Reply
Contributor
Posts: 27

Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

Hi Team

Request you to kindly provide steps on how to schedule a .sas file and .egp file in SAS Enterprise guide 7.1.

I have gone through Chris's paper on scheduling but unfortunately I am unable to connect to steps with 7.1 version.

Is there any pre-requisite for the same.

Please help me.

Apologies if this was a basic question, but I am new to SAS EG.

Thanks

Raj

SAS Super FREQ
Posts: 274

Re: Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

Hi Raj,

To schedule an EG project, click Schedule Project from the File menu in EG.  That will prompt you to save your project if you haven't already, and will then open the Windows Task Scheduler dialog where you can configure the schedule settings...

schedule.png

The Triggers tab is where you specify the time/date and recurrence (or even another event to trigger the task).  If you look at the Actions tab, you'll notice that the scheduled task is running a .vbs file created by EG.  The .vbs file opens and runs the EG project via automation.

Note: This EG project scheduling is carried out by the Windows Task Scheduler built into Windows.  In other words, it is client-side scheduling.  Another common approach is to develop .sas files in EG, save them in a location accessible to a server, then use server-side scheduling utilities (ex. LSF, etc.) to run the .sas programs.  In the former approach, the EG project is being scheduled/run (exactly as it would if you manually opened and ran the EG project in EG), whereas in the latter, .sas programs are being scheduled/run (independent of the EG project).

If you having problems scheduling and EG project, first make sure you have permissions to create a scheduled task on your Windows machine -- start the Windows Task Scheduler and create any scheduled task (ex. to open notepad).  (You can access the Windows Task Scheduler via Control Panel->Administrative Tools->Task Scheduler.)

Casey

Contributor
Posts: 29

Re: Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

[ Edited ]

This works so well!  I did not need a bat file or anything....Glad we upgraded to 7.1.

SAS Employee
Posts: 50

Re: Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

There is also some information about scheduling projects and process flows with the Windows Task Scheduler in the EG online help, if you're interested.  Click Help > SAS Enterprise Guide Help and search for "scheduling projects" on the Search tab.

thanks,

Jennifer

Esteemed Advisor
Posts: 6,706

Re: Scheduling sas code(.sas) and project (egp) in SAS EG 7.1

If you already have a scheduling system in your organization, I strongly suggest that you use that. Other IT people will not be happy if you set up an insular "solution".

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 4 replies
  • 3643 views
  • 4 likes
  • 5 in conversation