<?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: stopping the sas execution after the first error or warning in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216509#M307695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for message.&lt;/P&gt;&lt;P&gt;Please can you explain more "a sas bi environment as cit "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 20:41:13 GMT</pubDate>
    <dc:creator>LineMoon</dc:creator>
    <dc:date>2015-06-30T20:41:13Z</dc:date>
    <item>
      <title>stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216504#M307690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to stop the sas execution after the first error and keeping the log.&lt;/P&gt;&lt;P&gt;sas can show me the location of error in sas code( I am not talking about the log, I know that in the log, we will see the error).&lt;/P&gt;&lt;P&gt;I want to know, If i can have some thing likes this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt; set t1 t2&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program, I can see some thing likes this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ==&amp;gt;&amp;nbsp;&amp;nbsp; set t1 t2&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 19:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216504#M307690</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-06-29T19:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216505#M307691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LineMoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is in a macro language, you could define a macro variable that contain the information if there is any error, and if there are any error do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;status=0 %then %return;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will stop the execution of the program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 06:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216505#M307691</guid>
      <dc:creator>arodriguez</dc:creator>
      <dc:date>2015-06-30T06:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216506#M307692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best is to create a macro that checks the relevant automatic macro vars and jumps to a label at the end of the code if an error/warning condition is detected; insert that macro after every step.&lt;/P&gt;&lt;P&gt;The ERRORABEND option will only check errors, not warnings, and terminate the process, which is only good for batch jobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For easier detection of syntax errors, SAS provides the enhanced editor and its color scheme; for errors happening at runtime, look at the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 06:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216506#M307692</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-06-30T06:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216507#M307693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kurt, Thanks for suggesting this options. It solves many of my problems also. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey LineMoon, below is the code for your reference :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;options ERRORABEND;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data t1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 1; y = 'a'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 2; y = 'b'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 3; y = 'c'; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data t2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 4; z = 'a'; output&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 5; z = 'b'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = 6; z = 'c'; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table t3 as &lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from t1&lt;/P&gt;&lt;P&gt;&amp;nbsp; outer union corr&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from t2;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:29:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216507#M307693</guid>
      <dc:creator>AmitRathore</dc:creator>
      <dc:date>2015-06-30T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216508#M307694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The option errorabend or better syntaxcheck mode is the default for batch processes.&lt;/P&gt;&lt;P&gt;For interactive mode a human is expected to react. That is why sas has chosen to continue as much as possible.&lt;/P&gt;&lt;P&gt;Do not use the option errorabend in a sas bi environment as cit could lose necessary informstion and sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are whole documented chapters on configuring error handling as it more complex as suspected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 12:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216508#M307694</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-06-30T12:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216509#M307695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for message.&lt;/P&gt;&lt;P&gt;Please can you explain more "a sas bi environment as cit "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 20:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216509#M307695</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2015-06-30T20:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: stopping the sas execution after the first error or warning</title>
      <link>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216510#M307696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The classic sas DMS is connected to a terminal or running on your desktop.&lt;/P&gt;&lt;P&gt; It is based on having some source (input) getting results (output) and a log file. It is the approach of batch processing with punch cards in the 60's.&lt;/P&gt;&lt;P&gt;With Sas bi/di there is a metadata server object and more. It is more Iike a dbms system wit a data and system dictionary. All new solutions are based on that. Sas studio and Eguide server based. You can have more and shared sessions with those. Eguide studio sare sending the results and log after processing. Not terminal&amp;nbsp; based anymore. You will break that with an abort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 09:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/stopping-the-sas-execution-after-the-first-error-or-warning/m-p/216510#M307696</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-07-01T09:30:19Z</dc:date>
    </item>
  </channel>
</rss>

