<?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: options errorabend in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399080#M25656</link>
    <description>&lt;P&gt;Set a macro variable and use it in a condition attached to the following node(s). When EG loses connection to the workspace server (a consequence of the errorabend option), it simply starts a new WS when requested to execute a node. So you need to keep the node from executing, and that's what the conditions are for.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 09:18:17 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-09-27T09:18:17Z</dc:date>
    <item>
      <title>options errorabend</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399076#M25655</link>
      <description>&lt;P&gt;Hello - Can someone just advise me if this should work and if I'm just not doing something correctly please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a load of SAS scripts that are joined together in a process flow. There about 35 scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want it to stop executing the flow (so subsequent steps) if an error occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've put the below at the start, and thought this would do the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options errorabend;&lt;BR /&gt;options ERRORCHECK=STRICT;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done this on a test flow, which is just three scripts - First script designed to generate an error, and the subsequent scripts would just put a word in the log. If the &lt;SPAN&gt;options errorabend stuff is in the first script and I run the flow, the flow stops after it finds the error in the first script. (This is what I want). If I comment out the&amp;nbsp;options errorabend stuff, the flow exectutes the remaining scripts (not what I want).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought this would be fine, but when&amp;nbsp;implemented into my real flow, the flow still runs the subsequent scripts! Even though, in the log, it says "SAS has ended due to error".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this the right way to just get my flow to STOP as soon as an error is encoutered? That's all I want it to do.. I am using EG 7.12 - I know if 7.13 there will be an option in the properties for a script to do what I want, but I haven't got it yet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399076#M25655</guid>
      <dc:creator>ScottJP</dc:creator>
      <dc:date>2017-09-27T09:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: options errorabend</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399080#M25656</link>
      <description>&lt;P&gt;Set a macro variable and use it in a condition attached to the following node(s). When EG loses connection to the workspace server (a consequence of the errorabend option), it simply starts a new WS when requested to execute a node. So you need to keep the node from executing, and that's what the conditions are for.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399080#M25656</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-27T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: options errorabend</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399082#M25657</link>
      <description>&lt;P&gt;Ok thanks. I've just realised that 7.15 is ready to download, so I'm going to update to that instead so that I have the project properties option to stop current branch on errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/399082#M25657</guid>
      <dc:creator>ScottJP</dc:creator>
      <dc:date>2017-09-27T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: options errorabend</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/569667#M34079</link>
      <description>&lt;P&gt;Use &amp;amp;syserr or &amp;amp;syscc (but you will need to reset it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%Macro Chec_Error;&lt;/P&gt;&lt;P&gt;%let syscc = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%if &amp;amp;syserr &amp;gt; 0 or &amp;amp;syscc &amp;gt; 0 %then&lt;/P&gt;&lt;P&gt;%do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put NOTE - "SYSERR - &amp;amp;syserr and SYSCC - &amp;amp;syscc ";&lt;/P&gt;&lt;P&gt;%put NOTE - "Error Reason - &amp;amp;syserrortext";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%abort cancel;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the macro at the end of the code boundary.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 23:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/options-errorabend/m-p/569667#M34079</guid>
      <dc:creator>karan124</dc:creator>
      <dc:date>2019-06-27T23:09:33Z</dc:date>
    </item>
  </channel>
</rss>

