<?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: STOP and ABORT statement syntax confusion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547537#M151744</link>
    <description>&lt;P&gt;If you are just learning to use SAS then you probably have no need for either of these statements.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 02:50:29 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-04-01T02:50:29Z</dc:date>
    <item>
      <title>STOP and ABORT statement syntax confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547535#M151743</link>
      <description>&lt;P&gt;As a new SAS user, I frequently make mistakes. I am confused on the syntax and usage of the STOP and ABORT functions to halt the progress of the code. When one wants to stop their code from running, do I need to always include these statements at the end of my program just in case?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 02:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547535#M151743</guid>
      <dc:creator>moseland</dc:creator>
      <dc:date>2019-04-01T02:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: STOP and ABORT statement syntax confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547537#M151744</link>
      <description>&lt;P&gt;If you are just learning to use SAS then you probably have no need for either of these statements.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 02:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547537#M151744</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-04-01T02:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: STOP and ABORT statement syntax confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547582#M151758</link>
      <description>&lt;P&gt;The STOP statement stops execution of a datastep, not a program, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set data1;
  call symputx('exec_date',exec_date);
  stop;
run;
  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this example, the datastep stops immediately after executing SYMPUTX, so only one observation is read from DATA1. But all the program statements following the data step are executed as normal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ABORT statement is used to cancel execution of a program. So, if I had put an ABORT statement instead of STOP in the datastep, the code after the data step would not had been executed either (and your session may have ended, depending on what options you had used for the ABORT statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; wrote: If you are just beginning to learn SAS, you probably have need of any of these statements.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547582#M151758</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-04-01T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: STOP and ABORT statement syntax confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547659#M151787</link>
      <description>&lt;P&gt;For what it may be worth, I haven't actually used an ABORT statement since 1996, which was the last SAS related job I had that did batch related processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I may have&amp;nbsp;needed to use&amp;nbsp;STOP as recently as 2008.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YMMV.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 16:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547659#M151787</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-01T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: STOP and ABORT statement syntax confusion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547811#M151854</link>
      <description>&lt;P&gt;I use both statements quite often (several times a year ;)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ABORT statement is also quite usable in online processing, where I most often use the ABORT CANCEL FILE version, which just stops execution of the currently submitted program, or the currently %INCLUDE-file.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 07:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/STOP-and-ABORT-statement-syntax-confusion/m-p/547811#M151854</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-04-02T07:02:57Z</dc:date>
    </item>
  </channel>
</rss>

