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

Hi there,

I will be taking some extended leave shortly and would like to automate my programs to run while I'm not there. My investigations bring me to setting up a schedule to have them run automatically. However, I want certain programs to only run if there is new data available that needs to be imported - this will be identified by a new file appearing in a specific folder SAS has access to. Is this possible? Also, does my pc need to be turned on and SAS open for the scheduler to run, or can this be set up on the server?

ETA - I want the scheduler to check if there is new data to be imported, if yes, then run the program to append the new data to the existing dataset, then delete the raw data file (the imported file). If there is no file containing new data, then there is nothing for the scheduler to do. I hope that makes sense!

Thanks,

Dearnne

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

Server-based scheduling is far more reliable than PC-based, so this is what I would recommend. If you have the SAS LSF scheduler available to you then you can set up the scheduling via SAS Management Console. LSF can be scheduled on the basis of a new file event - it does the checking for you so you don't have to code for it.

If you use your PC then it must be powered on and your userid must have a current password. The Windows scheduler can be used but it doesn't handle file events and you have to set up your batch jobs manually. You can write SAS code to check for file events, but then you would have to run your batch jobs more frequently just to check if a new file had arrived or not. This is not a reliable solution as all it would take is a power outage or someone to shut down your PC down and your scheduled jobs would not run. 

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

Server-based scheduling is far more reliable than PC-based, so this is what I would recommend. If you have the SAS LSF scheduler available to you then you can set up the scheduling via SAS Management Console. LSF can be scheduled on the basis of a new file event - it does the checking for you so you don't have to code for it.

If you use your PC then it must be powered on and your userid must have a current password. The Windows scheduler can be used but it doesn't handle file events and you have to set up your batch jobs manually. You can write SAS code to check for file events, but then you would have to run your batch jobs more frequently just to check if a new file had arrived or not. This is not a reliable solution as all it would take is a power outage or someone to shut down your PC down and your scheduled jobs would not run. 

ddeaves
Calcite | Level 5

Thanks - sounds like LSF scheduler via the Management Console will do exactly what I need it to do. Unfortunately I can't set anything up using Windows Scheduler as my PC won't be turned on or logged in for a few months while I'm away.

I've checked the Management Console but can't find any reference to the scheduler. Would it be as simple as contacting my administrator to ask them to "activate' this for me?

Thanks,

SASKiwi
PROC Star

That is entirely possible. If your userid does not have SAS admin rights set up in SAS metadata, then you may not even see Schedule Manager as an option - this should appear in the SMC Explorer.

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
  • 3 replies
  • 1419 views
  • 1 like
  • 2 in conversation