<?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: Exit code during ABORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exit-code-during-ABORT/m-p/25074#M4330</link>
    <description>The behavior may vary depending on your OS and the ERRORABEND setting.  Also, consider that you have not only a %ABORT statement but also the %RETURN statement to use.  And there are optional parameters you can pass to influence the behavior.&lt;BR /&gt;
&lt;BR /&gt;
A current SAS 9.2. doc link is listed below, but also check the SAS 'companion' for your OS and as well check your SAS version DOC for any behavior differences.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 MACRO Language %ABORT Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002475061.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002475061.htm&lt;/A&gt;</description>
    <pubDate>Wed, 29 Apr 2009 18:28:43 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-29T18:28:43Z</dc:date>
    <item>
      <title>Exit code during ABORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exit-code-during-ABORT/m-p/25073#M4329</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I am facing an issue here with the return code passed by a macro %abort. In a specific scenario I would like to return a code of "0" to the system environment, although an %abort was thrown.&lt;BR /&gt;
&lt;BR /&gt;
However I get the following return codes for the following statements:&lt;BR /&gt;
&lt;BR /&gt;
%abort                  -&amp;gt;  3&lt;BR /&gt;
%abort 0               -&amp;gt;   3&lt;BR /&gt;
%abort abend 0     -&amp;gt; 5&lt;BR /&gt;
&lt;BR /&gt;
What do I have to do to get a "0" when using %abort?&lt;BR /&gt;
&lt;BR /&gt;
Thanks and regards,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 29 Apr 2009 16:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exit-code-during-ABORT/m-p/25073#M4329</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2009-04-29T16:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exit code during ABORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exit-code-during-ABORT/m-p/25074#M4330</link>
      <description>The behavior may vary depending on your OS and the ERRORABEND setting.  Also, consider that you have not only a %ABORT statement but also the %RETURN statement to use.  And there are optional parameters you can pass to influence the behavior.&lt;BR /&gt;
&lt;BR /&gt;
A current SAS 9.2. doc link is listed below, but also check the SAS 'companion' for your OS and as well check your SAS version DOC for any behavior differences.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
SAS 9.2 MACRO Language %ABORT Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002475061.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002475061.htm&lt;/A&gt;</description>
      <pubDate>Wed, 29 Apr 2009 18:28:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exit-code-during-ABORT/m-p/25074#M4330</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-29T18:28:43Z</dc:date>
    </item>
  </channel>
</rss>

