Architecting, installing and maintaining your SAS environment

Scheduling a SAS job to execute after every 5 min

Reply
Contributor
Posts: 46

Scheduling a SAS job to execute after every 5 min

The SAS Management Console only allows scheduling of Deployed SAS Jobs only at an hourly basis. But i have a requirement in which data need to be pulled every 5 mins.

Please help.

 

 

Thanks in Advance.

Frequent Contributor
Posts: 96

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to ankit___gupta

You can add multiple time events for deployed jobs,

So in your scenario, you have to create total 12-time events,

In this way, you can fulfill your requirement.

here is the screenshot for your reference:

 

1.) Create total 12-time events like this(eg:00-5-10-15-20........45-50-55)

timeevent.png

 

 

2.) After creating that all time events, schedule the flow like this:

schedule-flow.png

Contributor
Posts: 46

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to Kalind_Patel

For the specific SAS Management Console verion that i'm waorking on displays the time events as list hence you cannot apply one time event at a time. Therefore i cannot apply your solution.

SMC PIC.png

 

My SAS Management Console version is 9.4.

@Kalind_Patel What is your SAS Management Console version ?

Frequent Contributor
Posts: 96

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to ankit___gupta

I am using SAS 9.4 M3,

 

Please change the scheduling server from operating system services to SAS DIP Job Runner,

I am using SAS DIP Job Runner for this JOB,

 

You can change this by:

Go to Schedule Manager> right click on Deployed Job> set Scheduling Server

Respected Advisor
Posts: 3,799

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to ankit___gupta

Why not just write a program that wakes up every 5min or so and does the deed.

Trusted Advisor
Posts: 1,322

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to ankit___gupta

Hi, please let me come in very quickly:

 

A more general answer for any SAS user/admin is well described here: http://blogs.sas.com/content/sgf/2013/08/14/four-ways-to-schedule-sas-tasks/

 

Hope it helps.

Occasional Contributor
Posts: 14

Re: Scheduling a SAS job to execute after every 5 min

Posted in reply to ankit___gupta

Hi Ankit,

 

You can run or schedule the SAS jobs as per your requirements.

 

If you are using the Linux o/s then you can perform the same task by using crontab.

 

OR 

 

if you are using the windows o/s then you can do the same by using windows task scheduler.

 

Best Regards

Suraj

Ask a Question
Discussion stats
  • 6 replies
  • 419 views
  • 4 likes
  • 5 in conversation