<?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: running my SAS prog via cron on UNIX in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328018#M62444</link>
    <description>&lt;P&gt;PS runsas is (my guess) the script file that handles calling sas with a certain config &amp;amp; autoexec.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 14:22:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-01-27T14:22:27Z</dc:date>
    <item>
      <title>running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328012#M62442</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on my unix box,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/home/.../sas $&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/home/.../sas $ runsas mysasprogs/myprog.sas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how do i deal with the "runsas" statement in cron?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i've tried&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;45 8 27 1 * /home/.../sas/mysasprogs/myprog.sas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;45 8 27 1 * /home/.../sas $ runsas mysasprogs/myprog.sas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;these arent working.. any help on how to deal with the runsas statement?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328012#M62442</guid>
      <dc:creator>prolifious</dc:creator>
      <dc:date>2017-01-27T14:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328017#M62443</link>
      <description>&lt;PRE&gt;/home/.../sas $ &lt;/PRE&gt;
&lt;P&gt;This is your UNIX prompt. This don`t belong in your crontab.&lt;/P&gt;
&lt;PRE&gt;runsas mysasprogs/myprog.sas&lt;/PRE&gt;
&lt;P&gt;This is your command. This is what you need in the crontab.&lt;/P&gt;
&lt;P&gt;But I would make sure that all files in a crontab are called by their absolute pathname (starting with the root - / - directory), as the current working directory of a crontab job might be different from the one you were in when testing.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328017#M62443</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-27T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328018#M62444</link>
      <description>&lt;P&gt;PS runsas is (my guess) the script file that handles calling sas with a certain config &amp;amp; autoexec.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328018#M62444</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-27T14:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328021#M62445</link>
      <description>&lt;P&gt;Thank you very much...yes you're probably right. &amp;nbsp;I'm working with your advice, i'll get back soon. &amp;nbsp;I really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328021#M62445</guid>
      <dc:creator>prolifious</dc:creator>
      <dc:date>2017-01-27T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328050#M62448</link>
      <description>&lt;P&gt;totally correct about the script. &amp;nbsp;I spoke with someone within my shop and they're going to help me with that. &amp;nbsp;This is not as straight forward as I was initially told. &amp;nbsp;I've never worked with scripts before, so i need to start now! &amp;nbsp;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 15:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328050#M62448</guid>
      <dc:creator>prolifious</dc:creator>
      <dc:date>2017-01-27T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: running my SAS prog via cron on UNIX</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328108#M62458</link>
      <description>&lt;P&gt;I like to create a shell script (example: &lt;STRONG&gt;sasdaily.sh&lt;/STRONG&gt;) file with all of the SAS jobs that I want to schedule at once. &amp;nbsp;Looks something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/usr/local/bin/sas_u8 -nodms -sysin "/u/myid/project/job1.sas"
/usr/local/bin/sas_u8 -nodms -sysin "/u/myid/project/job2.sas" &lt;/PRE&gt;
&lt;P&gt;To make this file executable, you need to run &lt;STRONG&gt;chmod&lt;/STRONG&gt;&amp;nbsp;(example: "chmod +x sasdaily.sh"). &amp;nbsp;Then when I need to change/add the SAS jobs I'm running, I can just edit the .sh file and not mess with the crontab scheduler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also combine a "change dir" command in your crontab with this as it runs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;30 06  *   *   1-5   cd /u/myid/project &amp;amp;&amp;amp; ./sasdaily.sh&lt;/PRE&gt;
&lt;P&gt;Then your logs/listings are grouped where you expect them, with your SAS files.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 19:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/running-my-SAS-prog-via-cron-on-UNIX/m-p/328108#M62458</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-01-27T19:51:25Z</dc:date>
    </item>
  </channel>
</rss>

