<?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: Scheduling a job in sas without using crontab in unix in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416108#M67591</link>
    <description>&lt;P&gt;Curious to know why you are trying to create your own scheduler in SAS when there are more functional OS, SAS-supplied and third party schedulers available. I would check out what schedulers are already being used in your organisation. Also scheduling is available in SAS using SAS Management Console.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Nov 2017 01:14:38 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-11-25T01:14:38Z</dc:date>
    <item>
      <title>Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416047#M67589</link>
      <description>&lt;P&gt;I have been working on an experimental code to schedule a job in sas without using unix. The code is as follows:&lt;/P&gt;&lt;P&gt;%macro incrementvar(vartoincrement);&lt;/P&gt;&lt;P&gt;%let &amp;amp;vartoincrement = %eval(&amp;amp;&amp;amp;&amp;amp;vartoincrement + 86400);&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%macro chronjb;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;now=datetime();&lt;/P&gt;&lt;P&gt;start='07NOV2017:04:35:00'dt;&lt;/P&gt;&lt;P&gt;wait_sec=0;&lt;/P&gt;&lt;P&gt;%mid: wait_sec=%sysfunc(ABS(wait_sec-(start-now)));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zzz=sleep((wait_sec),1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %include 'V2D.sas';&lt;/P&gt;&lt;P&gt;%incrementvar(wait_sec);&lt;/P&gt;&lt;P&gt;%goto mid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%chronjb;&lt;/P&gt;&lt;P&gt;%put &amp;amp;=wait_sec;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it has come to me now that there has been a big issue all along. On running this program, it executes the included program after the required amount of wait time, after which it goes on a never ending loop without waiting for a day. I want the included program to execute at a specific time and keep repeating at that very same time everyday till we stop it. How do I include this way to stop the program, and how do I make it repeat at the same time everyday? Please advice...&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 15:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416047#M67589</guid>
      <dc:creator>DOBBINHO</dc:creator>
      <dc:date>2017-11-24T15:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416056#M67590</link>
      <description>&lt;P&gt;Note: I know I could try using the "break" and "Window" option to try and specify if I want to continue the loop..... But how do I do so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 16:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416056#M67590</guid>
      <dc:creator>DOBBINHO</dc:creator>
      <dc:date>2017-11-24T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416108#M67591</link>
      <description>&lt;P&gt;Curious to know why you are trying to create your own scheduler in SAS when there are more functional OS, SAS-supplied and third party schedulers available. I would check out what schedulers are already being used in your organisation. Also scheduling is available in SAS using SAS Management Console.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 01:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416108#M67591</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-11-25T01:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416264#M67608</link>
      <description>&lt;P&gt;Your curiosity is totally agreeable, but I actually want to be able to not use any external schedulers since it would be cool to find an alternative. The sleep function is a great yet cumbersome way to do so, but I kinda figured that it would probably be the only way, provided I can debug the program I made.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 07:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416264#M67608</guid>
      <dc:creator>DOBBINHO</dc:creator>
      <dc:date>2017-11-27T07:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416341#M67614</link>
      <description>&lt;P&gt;So you have someone that pays you to do cool but totally unnecessary stuff?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 11:51:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416341#M67614</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-11-27T11:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling a job in sas without using crontab in unix</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416348#M67617</link>
      <description>lol..... yeah.... pretty neat huh?&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2017 12:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Scheduling-a-job-in-sas-without-using-crontab-in-unix/m-p/416348#M67617</guid>
      <dc:creator>DOBBINHO</dc:creator>
      <dc:date>2017-11-27T12:11:19Z</dc:date>
    </item>
  </channel>
</rss>

