<?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: How to confirm whether scheduled projects are running or not? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744621#M38889</link>
    <description>&lt;P&gt;You need to log on to the server with SSH.&lt;/P&gt;
&lt;P&gt;Then enter the command&lt;/P&gt;
&lt;PRE&gt;crontab -e&lt;/PRE&gt;
&lt;P&gt;which opens your crontab file with the vi editor.&lt;/P&gt;
&lt;P&gt;There, enter your command as described in&amp;nbsp;&lt;A href="https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20system%20background." target="_blank" rel="noopener"&gt;https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20system%20background.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend to set up an infrastructure in your home directory, e.g.&lt;/P&gt;
&lt;PRE&gt;sas
log
script&lt;/PRE&gt;
&lt;P&gt;for SAS programs, logs and script files.&lt;/P&gt;
&lt;P&gt;script files are simple text files that have their execute bit set (done with&lt;/P&gt;
&lt;PRE&gt;chmod u+x $HOME/script/scriptfile&lt;/PRE&gt;
&lt;P&gt;) and contain the SAS call, something like&lt;/P&gt;
&lt;PRE&gt;/sas/Lev1/SASApp/BatchServer/sasbatch $HOME/sas/myprog.sas -log $HOME/log/myprog.log&lt;/PRE&gt;
&lt;P&gt;so you then enter&lt;/P&gt;
&lt;PRE&gt;0 5 * * * $HOME/script/scriptfile&lt;/PRE&gt;
&lt;P&gt;in the crontab to run the program daily at 05:00.&lt;/P&gt;</description>
    <pubDate>Sat, 29 May 2021 16:29:53 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-05-29T16:29:53Z</dc:date>
    <item>
      <title>How to confirm whether scheduled projects are running or not?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744604#M38886</link>
      <description>&lt;P&gt;I have a program which I need to run daily. So, I scheduled a trial run for it on SAS EG, and it approximately usually takes 1 hour to run. It is 10 mins past the run start time now, and how do I now confirm whether the program is running at all or not?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS EG on Unix server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 10:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744604#M38886</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2021-05-29T10:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to confirm whether scheduled projects are running or not?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744608#M38887</link>
      <description>&lt;P&gt;Log on to the UNIX server via SSH (e.g. with PUtty). Use your Enterprise Guide credentials.&lt;/P&gt;
&lt;P&gt;Run this:&lt;/P&gt;
&lt;PRE&gt;ps -ef|grep userid&lt;/PRE&gt;
&lt;P&gt;where userid is from your EG credentials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I would do this differently:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;save your project code to one single .sas file on the server&lt;/LI&gt;
&lt;LI&gt;create a shell script on the server that runs the code, including a dedicated name/location for the log file; include the run date/time in the log file name&lt;/LI&gt;
&lt;LI&gt;schedule this with crontab&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;that way you get a clear documentation of the executions (if a cron job fails, mail is sent to your UNIX user), and the scheduling does not rely on your desktop being switched on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 11:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744608#M38887</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-29T11:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to confirm whether scheduled projects are running or not?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744613#M38888</link>
      <description>Would you kindly explain the scheduling with crontab? I have never used it and definitely want to follow the procedure you mentioned, as its more efficient.</description>
      <pubDate>Sat, 29 May 2021 12:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744613#M38888</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2021-05-29T12:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to confirm whether scheduled projects are running or not?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744621#M38889</link>
      <description>&lt;P&gt;You need to log on to the server with SSH.&lt;/P&gt;
&lt;P&gt;Then enter the command&lt;/P&gt;
&lt;PRE&gt;crontab -e&lt;/PRE&gt;
&lt;P&gt;which opens your crontab file with the vi editor.&lt;/P&gt;
&lt;P&gt;There, enter your command as described in&amp;nbsp;&lt;A href="https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20system%20background." target="_blank" rel="noopener"&gt;https://help.ubuntu.com/community/CronHowto#:~:text=A%20crontab%20file%20is%20a,them%20in%20the%20system%20background.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend to set up an infrastructure in your home directory, e.g.&lt;/P&gt;
&lt;PRE&gt;sas
log
script&lt;/PRE&gt;
&lt;P&gt;for SAS programs, logs and script files.&lt;/P&gt;
&lt;P&gt;script files are simple text files that have their execute bit set (done with&lt;/P&gt;
&lt;PRE&gt;chmod u+x $HOME/script/scriptfile&lt;/PRE&gt;
&lt;P&gt;) and contain the SAS call, something like&lt;/P&gt;
&lt;PRE&gt;/sas/Lev1/SASApp/BatchServer/sasbatch $HOME/sas/myprog.sas -log $HOME/log/myprog.log&lt;/PRE&gt;
&lt;P&gt;so you then enter&lt;/P&gt;
&lt;PRE&gt;0 5 * * * $HOME/script/scriptfile&lt;/PRE&gt;
&lt;P&gt;in the crontab to run the program daily at 05:00.&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 16:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-confirm-whether-scheduled-projects-are-running-or-not/m-p/744621#M38889</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-29T16:29:53Z</dc:date>
    </item>
  </channel>
</rss>

