<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Schedule to run a SAS program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20000#M4126</link>
    <description>Depends on your platform.&lt;BR /&gt;
&lt;BR /&gt;
In Unix, use the AT command for a one-off schedule or the CRON tool for a repeating schedule.&lt;BR /&gt;
&lt;BR /&gt;
In Windows, use the Windows Scheduler (available from the control panel).&lt;BR /&gt;
&lt;BR /&gt;
In both, you have to know the syntax to run a SAS job in batch from the command line.  Many Unix admins have written local scripts so batch jobs are easy to set up.  In Windows, you have to put the options in yourself, so I usually develop the script in a Windows batch file (.bat extension) and then point the scheduler to the batch file.&lt;BR /&gt;
&lt;BR /&gt;
My mainframe use is too rusty to give you pointers, beyond that it can be done there too.</description>
    <pubDate>Thu, 16 Apr 2009 14:04:11 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2009-04-16T14:04:11Z</dc:date>
    <item>
      <title>Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19997#M4123</link>
      <description>Hey, &lt;BR /&gt;
&lt;BR /&gt;
Do you guys know how to schedule to run a SAS program? For eg: say I want a particular code to run at Sunday morning 10:00 AM. How do I do that...?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Shalini</description>
      <pubDate>Thu, 16 Apr 2009 13:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19997#M4123</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-16T13:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19998#M4124</link>
      <description>What OS platform?  There are several technical reference papers on the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website that discuss this topic for various OS environments.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 16 Apr 2009 14:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19998#M4124</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-16T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19999#M4125</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Traduce :&lt;BR /&gt;
&lt;BR /&gt;
Tu peux créer une tâche planifiée en cliquant sur :&lt;BR /&gt;
&lt;BR /&gt;
démarrer  =&amp;gt; panneau de configuration =&amp;gt; tâche planifiée =&amp;gt; création d'une tâche planifiée&lt;BR /&gt;
&lt;BR /&gt;
Je ne sais pas si ton PC est conçu pareil...&lt;BR /&gt;
&lt;BR /&gt;
Bye</description>
      <pubDate>Thu, 16 Apr 2009 14:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/19999#M4125</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-16T14:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20000#M4126</link>
      <description>Depends on your platform.&lt;BR /&gt;
&lt;BR /&gt;
In Unix, use the AT command for a one-off schedule or the CRON tool for a repeating schedule.&lt;BR /&gt;
&lt;BR /&gt;
In Windows, use the Windows Scheduler (available from the control panel).&lt;BR /&gt;
&lt;BR /&gt;
In both, you have to know the syntax to run a SAS job in batch from the command line.  Many Unix admins have written local scripts so batch jobs are easy to set up.  In Windows, you have to put the options in yourself, so I usually develop the script in a Windows batch file (.bat extension) and then point the scheduler to the batch file.&lt;BR /&gt;
&lt;BR /&gt;
My mainframe use is too rusty to give you pointers, beyond that it can be done there too.</description>
      <pubDate>Thu, 16 Apr 2009 14:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20000#M4126</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-04-16T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20001#M4127</link>
      <description>Shalini,&lt;BR /&gt;
&lt;BR /&gt;
One other note.  If you are using Windows and don't see the "Scheduled Tasks" in the Control Panel, that means that your network admins have disabled it and you'll need to contact them to get it back.&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Thu, 16 Apr 2009 14:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20001#M4127</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-04-16T14:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20002#M4128</link>
      <description>Hello.&lt;BR /&gt;
&lt;BR /&gt;
As previously said, adding the task to the system scheduler would be the simplest and safest way.&lt;BR /&gt;
&lt;BR /&gt;
But, if you wish to run your SAS program from a workstation and lets say, its a one time run only, I guess you could prepare a "special" datastep at the beginning of the program that will wait until the desired hour.&lt;BR /&gt;
&lt;BR /&gt;
Something like this:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
do until(datetime() gt '19APR2009 10:00:00'dt); /* check date/time */&lt;BR /&gt;
call sleep(10,60); /* wait 10x60 seconds = 10mins until next check */&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* your code, here */&lt;BR /&gt;
&lt;BR /&gt;
Greetings from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos at &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Fri, 17 Apr 2009 07:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20002#M4128</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-04-17T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20003#M4129</link>
      <description>Try wakeup for a more direct solution&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   rc = wakeup('08:47't);&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 17 Apr 2009 13:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20003#M4129</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-04-17T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20004#M4130</link>
      <description>So if I include the date and the time... this is how it should be right ?&lt;BR /&gt;
&lt;BR /&gt;
**************************************************&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   rc = wakeup('20APR2009 08:47:00'dt);&lt;BR /&gt;
   run;&lt;BR /&gt;
**************************************************</description>
      <pubDate>Sun, 19 Apr 2009 06:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20004#M4130</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-19T06:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20005#M4131</link>
      <description>Yes.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 19 Apr 2009 14:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20005#M4131</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-19T14:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule to run a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20006#M4132</link>
      <description>However, again, you never replied with OS information - this function is not implemented on the IBM z/OS MVS (mainframe) SAS environment - so it's OS-platform dependent.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 19 Apr 2009 14:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Schedule-to-run-a-SAS-program/m-p/20006#M4132</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-19T14:10:55Z</dc:date>
    </item>
  </channel>
</rss>

