<?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: Difference between %ABORT ABEND and Data Step Abort-Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/687782#M208841</link>
    <description>&lt;P&gt;AFAIK, %ABORT and the ABORT statement in a data step do the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  abort;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is equivalent to this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%abort;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%abort abend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;does exactly the same as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  abort abend;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Sep 2020 11:59:29 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2020-09-30T11:59:29Z</dc:date>
    <item>
      <title>Difference between %ABORT ABEND and Data Step Abort-Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/687733#M208821</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not taking into account that the former is a macro statement while the later is a data step statement, I was wondering whether there is any difference in the sense of behaviour/performance between:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%ABORT ABEND;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
  abort;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I found in the documentation of the two statements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p0f7j2zr6z71nqn1fpefnmulzazf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;https://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=p0f7j2zr6z71nqn1fpefnmulzazf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0hp2evpgqvfsfn1u223hh9ubv3g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0hp2evpgqvfsfn1u223hh9ubv3g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that both times it is stated that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"What happens next depends on&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;the method that you use to submit your SAS statements&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;the arguments that you use with %ABORT&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;BLOCKQUOTE&gt;your operating environment"&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Or can they be used interchangeably?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;FK1&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/687733#M208821</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2020-09-30T07:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between %ABORT ABEND and Data Step Abort-Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/687782#M208841</link>
      <description>&lt;P&gt;AFAIK, %ABORT and the ABORT statement in a data step do the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  abort;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is equivalent to this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%abort;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%abort abend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;does exactly the same as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  abort abend;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/687782#M208841</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-09-30T11:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between %ABORT ABEND and Data Step Abort-Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/688114#M208985</link>
      <description>&lt;P&gt;I also agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76464"&gt;@s_lassen&lt;/a&gt;&amp;nbsp; that they do the same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found the most useful form is ABORT CANCEL (or %ABORT CANCEL) which stops the current step and cancels all downstream processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a little macro called Abort_Pgm that I use when I am in open code but don't want to write a DATA step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%MACRO Abort_Pgm;
  %ABORT CANCEL;
%MEND Abort_Pgm;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have found that macro useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 05:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/688114#M208985</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-01T05:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between %ABORT ABEND and Data Step Abort-Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/688293#M209055</link>
      <description>Thx,Jim for your explanation</description>
      <pubDate>Thu, 01 Oct 2020 17:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-ABORT-ABEND-and-Data-Step-Abort-Statement/m-p/688293#M209055</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2020-10-01T17:09:17Z</dc:date>
    </item>
  </channel>
</rss>

