<?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 Batch Mode and the %ABORT Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743803#M232948</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a SAS programme which is made up of a series of %include statements (run in batch mode over Windows), like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%incude "path/programm1.sas";&lt;/P&gt;
&lt;P&gt;%incude "path/programm2.sas";&lt;/P&gt;
&lt;P&gt;%incude "path/programm3.sas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a macro in "programme2.sas" that executes the %ABORT with the ABEND option, will control pass back to the main programme and continue on to "programm3.sas", or will the batch session terminate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 May 2021 10:15:39 GMT</pubDate>
    <dc:creator>Jim_Ogilvie</dc:creator>
    <dc:date>2021-05-26T10:15:39Z</dc:date>
    <item>
      <title>Batch Mode and the %ABORT Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743803#M232948</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a SAS programme which is made up of a series of %include statements (run in batch mode over Windows), like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%incude "path/programm1.sas";&lt;/P&gt;
&lt;P&gt;%incude "path/programm2.sas";&lt;/P&gt;
&lt;P&gt;%incude "path/programm3.sas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have a macro in "programme2.sas" that executes the %ABORT with the ABEND option, will control pass back to the main programme and continue on to "programm3.sas", or will the batch session terminate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 10:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743803#M232948</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2021-05-26T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Mode and the %ABORT Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743811#M232953</link>
      <description>&lt;P&gt;If you use %ABORT ABEND, the batch program will terminate immediately and report an error to the calling environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the program to continue with the next %INCLUDE file instead, use %ABORT CANCEL FILE, which does exactly that.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743811#M232953</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2021-05-26T11:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Mode and the %ABORT Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743836#M232969</link>
      <description>Or Try %RETURN</description>
      <pubDate>Wed, 26 May 2021 12:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Mode-and-the-ABORT-Statement/m-p/743836#M232969</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-05-26T12:15:15Z</dc:date>
    </item>
  </channel>
</rss>

