<?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: SAS job on Crontab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814783#M321614</link>
    <description>&lt;P&gt;You can configure crontab to only run on certain days of the week:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/18919151/crontab-day-of-the-week-syntax" target="_blank"&gt;https://stackoverflow.com/questions/18919151/crontab-day-of-the-week-syntax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a lot better than handling this in your SAS program. If you google "crontab days of the week" you should find out the right syntax.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 19:57:50 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-05-23T19:57:50Z</dc:date>
    <item>
      <title>SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814758#M321602</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to schedule my SAS program on unix CRONTAB. i have scheduled for run my SAS program on 9pm. schedule to run only on specific days 18-30 and run on only Week days. here is i have setup of crontab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;0 21 18-30 * 1-5 /workspace/lob5/alm/u021592/cron/ksh_file_name.ksh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the problem is the program is running but its running on on Weekend as well &lt;STRONG&gt;(Sat and Sunday).&lt;/STRONG&gt; But i dont want to run this on SAT and SUN. i have listed 1-5 for some reason both day of month and day of week together not working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help on this&amp;nbsp; or any other approach?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 18:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814758#M321602</guid>
      <dc:creator>Ashpak</dc:creator>
      <dc:date>2022-05-23T18:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814761#M321604</link>
      <description>&lt;P&gt;For start you can add something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=sysday.;
%macro stopSAS()/minoperator;
%if &amp;amp;sysday. in (Saturday Sunday) %then
%do;
  endsas;
%end;
%mend;
%stopSAS()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;at the beginning of your &lt;STRONG&gt;SAS&lt;/STRONG&gt; code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 18:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814761#M321604</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2022-05-23T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814763#M321605</link>
      <description>&lt;P&gt;Thanks Is this code we need be written&amp;nbsp; in SAS program ? or Unix Shell scripts like crontab -e options?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 18:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814763#M321605</guid>
      <dc:creator>Ashpak</dc:creator>
      <dc:date>2022-05-23T18:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814776#M321609</link>
      <description>&lt;P&gt;Thanks, I have the same problem in my &lt;A href="https://valueinvesting.io/" target="_self"&gt;company&lt;/A&gt; when scheduling a cron job&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 19:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814776#M321609</guid>
      <dc:creator>km19922</dc:creator>
      <dc:date>2022-05-23T19:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814781#M321613</link>
      <description>&lt;P&gt;Probably a question you should ask on a different forum.&lt;/P&gt;
&lt;P&gt;Perhaps cron is not smart enough to filter by both specific days of the month and specific days of the week?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 19:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814781#M321613</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-23T19:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS job on Crontab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814783#M321614</link>
      <description>&lt;P&gt;You can configure crontab to only run on certain days of the week:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/18919151/crontab-day-of-the-week-syntax" target="_blank"&gt;https://stackoverflow.com/questions/18919151/crontab-day-of-the-week-syntax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a lot better than handling this in your SAS program. If you google "crontab days of the week" you should find out the right syntax.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 19:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-job-on-Crontab/m-p/814783#M321614</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-23T19:57:50Z</dc:date>
    </item>
  </channel>
</rss>

