<?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 automat run in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961967#M374986</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Is crontab an issue in Linux or in sas?? How can I do it? Step by step...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;crontab is the Unix command you can use to schedule jobs (tasks) for the cron deamon to launch.&amp;nbsp; You can read about it on Unix manuals and tutorials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically you schedule the Unix command you want to run.&amp;nbsp; Do you know how to run your SAS program from the Unix prompt?&amp;nbsp; If your environment is setup as it has been for the last 30 or so years since SAS was first released for Unxi the syntax is just:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas myprogram.sas&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course there are many options you migth want to add.&amp;nbsp; &amp;nbsp;Like where to write the SAS log.&amp;nbsp; In the example above the log will be written to myprogram.log in the current working directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For running via cron the two things that come to mind immediately that you will need to handle are&lt;/P&gt;
&lt;P&gt;(1) Make sure you set the current working directory first so it can find and write files in the correct place&lt;/P&gt;
&lt;P&gt;(2) Make sure you run your normal login scripts so the environment variables and settings you normally have (and your code probably expects) are available.&amp;nbsp; The default with cron is those are not run.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Mar 2025 03:49:17 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-03-16T03:49:17Z</dc:date>
    <item>
      <title>Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961947#M374975</link>
      <description>Hello&lt;BR /&gt;I want to shedule running of sas program ( or sas project) everyday at same time.&lt;BR /&gt;The running should be done everyday even if my computer is logged of.&lt;BR /&gt;If there is any error ( for example problem to connect server) then the next run will occur normally the day after.&lt;BR /&gt;What way do you recommend me to do it?&lt;BR /&gt;Would you recommend do it via sas?&lt;BR /&gt;Or via other program?&lt;BR /&gt;What is the disadvantage of doing it with sas?&lt;BR /&gt;What is the advantage of doing it via sas?&lt;BR /&gt;</description>
      <pubDate>Sat, 15 Mar 2025 14:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961947#M374975</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-03-15T14:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961957#M374982</link>
      <description>&lt;P&gt;If your SAS server runs on UNIX, the easiest way is to create a crontab entry.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 20:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961957#M374982</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-03-15T20:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961960#M374983</link>
      <description>&lt;P&gt;If you are referring to SAS Enterprise Guide projects, then these can only be scheduled on a computer where EG is installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The options are covered in &lt;A href="https://documentation.sas.com/doc/en/egcdc/8.5/egdoccdc/egug/p120m0y084zc3ln136lcseq41alx.htm" target="_blank" rel="noopener"&gt;EG documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just want to schedule a SAS program, then my preference is to use SAS Management Console's &lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/scheduleug/p1msjx6z2e25s0n1vlhi9ves4b2s.htm" target="_blank" rel="noopener"&gt;Schedule Manager&lt;/A&gt;.&amp;nbsp; That works OOTB by filling in a few screens, assuming it has already been configured. It is all server-based which is very reliable and robust.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a lot of other options for scheduling SAS programs which you can read about in the SAS doc &lt;A href="https://documentation.sas.com/doc/en/bicdc/9.4/scheduleug/titlepage.htm" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you also discuss your scheduling requirements with your SAS administrator as they may already have SAS scheduling configured and a preferred option for you to use.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 23:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961960#M374983</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-03-15T23:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961966#M374985</link>
      <description>Is crontab an issue in Linux or in sas?? How can I do it? Step by step...</description>
      <pubDate>Sun, 16 Mar 2025 03:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961966#M374985</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-03-16T03:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961967#M374986</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Is crontab an issue in Linux or in sas?? How can I do it? Step by step...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;crontab is the Unix command you can use to schedule jobs (tasks) for the cron deamon to launch.&amp;nbsp; You can read about it on Unix manuals and tutorials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically you schedule the Unix command you want to run.&amp;nbsp; Do you know how to run your SAS program from the Unix prompt?&amp;nbsp; If your environment is setup as it has been for the last 30 or so years since SAS was first released for Unxi the syntax is just:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sas myprogram.sas&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course there are many options you migth want to add.&amp;nbsp; &amp;nbsp;Like where to write the SAS log.&amp;nbsp; In the example above the log will be written to myprogram.log in the current working directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For running via cron the two things that come to mind immediately that you will need to handle are&lt;/P&gt;
&lt;P&gt;(1) Make sure you set the current working directory first so it can find and write files in the correct place&lt;/P&gt;
&lt;P&gt;(2) Make sure you run your normal login scripts so the environment variables and settings you normally have (and your code probably expects) are available.&amp;nbsp; The default with cron is those are not run.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 03:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961967#M374986</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-03-16T03:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule automat run</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961973#M374989</link>
      <description>&lt;P&gt;Maxim 6: Google Is Your Friend.&lt;/P&gt;
&lt;P&gt;Do a search for "crontab", which will lead you to this documentation (Maxim 1!) page:&amp;nbsp;&lt;A href="https://man7.org/linux/man-pages/man1/crontab.1.html" target="_blank" rel="noopener"&gt;https://man7.org/linux/man-pages/man1/crontab.1.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 09:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Schedule-automat-run/m-p/961973#M374989</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2025-03-16T09:14:32Z</dc:date>
    </item>
  </channel>
</rss>

