<?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 EG upon first error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102726#M9001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are used to program in the DMS / Base environment ...and have a lot of nodes in one long manual sas-code.&lt;/P&gt;&lt;P&gt;The Eguide approach is a little bit different. You have your job-flow approach to segregate the process it in logical (smaller) steps.&lt;/P&gt;&lt;P&gt;Advice: Split up you old code in smaller logical parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make restarting en reviewing much more easier and you have solved the "stop at error" request, all is part of the job-flow approach.&lt;/P&gt;&lt;P&gt;Normally a dependant (flow) source will not run when the first source generated errors.&lt;/P&gt;&lt;P&gt;A lot more is possible:&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: Arial,Bold;"&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/320-2009.pdf" title="http://support.sas.com/resources/papers/proceedings09/320-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/320-2009.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial,Bold;"&gt;To Run or Not to Run: Apply Conditions to Your Tasks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 21:13:55 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-08-06T21:13:55Z</dc:date>
    <item>
      <title>stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102720#M8995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi friends.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there an automatic way to make SAS stop upon the first error?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The other way is using&amp;nbsp; for each node&amp;nbsp; conditional processing, and&amp;nbsp; for each node check macro variables SYSERR,&amp;nbsp; but if you have an EG program with a lot of nodes ….. this mean&amp;nbsp; rewrite all !!!&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 13:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102720#M8995</guid>
      <dc:creator>prizzo60</dc:creator>
      <dc:date>2013-08-06T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102721#M8996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how about ENDSAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 19:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102721#M8996</guid>
      <dc:creator>flysnow</dc:creator>
      <dc:date>2013-08-06T19:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102722#M8997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ENDSAS isn't a good idea in EG -- it terminates your SAS session and you'll lose anything in WORK, and you might not get all of your log content (with the errors).&amp;nbsp; It's like hanging up the phone before you get any answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than conditional nodes (which you mentioned), there isn't currently a good approach to "abandon" a process flow upon the first error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 19:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102722#M8997</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-08-06T19:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102723#M8998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you don't really define what it means to "make SAS stop", so here's one thought that involves a smaller amount of rewrite.&amp;nbsp; You would have to replace all your RUN; statements with a macro call:&amp;nbsp; %RUNN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then macro could look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro RUNN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %global _cancel_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run &amp;amp;_cancel_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %if &amp;amp;syserr &amp;gt; 0 %then %let _cancel_ = cancel;&lt;/P&gt;&lt;P&gt;%mend RUNN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's based upon the idea that this statement does not run the DATA or PROC step:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run cancel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it will still fill up your log, reflecting the steps that were canceled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to debug your process, then re-run it, you would have to add this statement up front:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let _cancel_=;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a little unwieldy for EG, since you have to work with the EG-generated code to locate the RUN; statements, and you might even need additional functionality for the QUIT; statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 19:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102723#M8998</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-08-06T19:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102724#M8999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While it wont stop on the first error the SAS option SYNTAXCHECK will force SAS into syntax check mode which means it will run the rest of the process steps only checking code and not doing any processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In EG this has to be set at the top of each code/process submission because EG switches it back to NOSYNTAXCHECK at the start of the next RUN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 20:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102724#M8999</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-08-06T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102725#M9000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of EG are you using? Beginning with EG 4.2, you can run a branch conditionally . . .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 20:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102725#M9000</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-08-06T20:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102726#M9001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are used to program in the DMS / Base environment ...and have a lot of nodes in one long manual sas-code.&lt;/P&gt;&lt;P&gt;The Eguide approach is a little bit different. You have your job-flow approach to segregate the process it in logical (smaller) steps.&lt;/P&gt;&lt;P&gt;Advice: Split up you old code in smaller logical parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make restarting en reviewing much more easier and you have solved the "stop at error" request, all is part of the job-flow approach.&lt;/P&gt;&lt;P&gt;Normally a dependant (flow) source will not run when the first source generated errors.&lt;/P&gt;&lt;P&gt;A lot more is possible:&amp;nbsp; &lt;SPAN style="font-size: 12pt; font-family: Arial,Bold;"&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/320-2009.pdf" title="http://support.sas.com/resources/papers/proceedings09/320-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/320-2009.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Arial,Bold;"&gt;To Run or Not to Run: Apply Conditions to Your Tasks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 21:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102726#M9001</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-06T21:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102727#M9002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Add &lt;STRONG&gt;Options errorabend;&lt;/STRONG&gt; as the first step in your project. Either in prestep (Tools-Options-SAS programs-Custom code before...) or in a program object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will stop any execution immideately when an error occurs, but also close the connection to the SAS server, meaning all work data is lost!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 07:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/102727#M9002</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2013-08-09T07:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: stop EG upon first error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/632564#M35701</link>
      <description>&lt;P&gt;See Casey Smith's reply in this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-EG-Stop-Executing-subsequent-process-flows-based-on-a/m-p/313292#M21132" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Making-EG-Stop-Executing-subsequent-process-flows-based-on-a/m-p/313292#M21132&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Project Properties &amp;gt; Code Submission &amp;gt; Action to take on errors during execution&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 03:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/stop-EG-upon-first-error/m-p/632564#M35701</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2020-03-17T03:30:54Z</dc:date>
    </item>
  </channel>
</rss>

