<?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 stop a sas program on a unix server in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771680#M39648</link>
    <description>&lt;P&gt;Abort when an error state is detected:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;syscc. ne 0 %then %do;
%abort abend 2;
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Oct 2021 19:56:33 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-10-01T19:56:33Z</dc:date>
    <item>
      <title>how to stop a sas program on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771627#M39643</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a unix command such as nohup sas maindriver.sas &amp;amp;&lt;/P&gt;
&lt;P&gt;which call many sas macro functions , one at the time...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to add a unix command into on of these sas macro functions to stop execution because I am trying to make some troubleshooting and I want the process stop, until I have found where the problem come from?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 17:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771627#M39643</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-10-01T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop a sas program on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771669#M39644</link>
      <description>&lt;P&gt;You mean that the program should stop itself when it detects a certain condition (e.g. &amp;amp;syscc ne 0)?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 19:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771669#M39644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-01T19:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop a sas program on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771673#M39646</link>
      <description>&lt;PRE&gt;%macro mainfunc;
%m1;
%m2;
%m3;
%m4;
%m5;

%mend mainfunc;
%mainfunc;&lt;/PRE&gt;
&lt;P&gt;Suppose that my mainfunction call m1, m2 , m3, m4, m5&lt;/P&gt;
&lt;P&gt;So imagine that in m3, for example, I need to make a libname statement and if the libname does not exist, how can I abort the %mainfunc;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 19:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771673#M39646</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-10-01T19:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop a sas program on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771680#M39648</link>
      <description>&lt;P&gt;Abort when an error state is detected:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if &amp;amp;syscc. ne 0 %then %do;
%abort abend 2;
%end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Oct 2021 19:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771680#M39648</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-10-01T19:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop a sas program on a unix server</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771711#M39650</link>
      <description>&lt;P&gt;You could also try the SAS option ERRORABEND which is good for batch jobs.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 23:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-stop-a-sas-program-on-a-unix-server/m-p/771711#M39650</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-10-01T23:59:34Z</dc:date>
    </item>
  </channel>
</rss>

