<?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 SAS when error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429957#M106237</link>
    <description>&lt;P&gt;Even more reason for modularistion and documentation.&amp;nbsp; Each new block should be documented and validated before being moved into the production process.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2018 12:00:43 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-01-23T12:00:43Z</dc:date>
    <item>
      <title>Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429946#M106232</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have 1500 lines off SAS code which can take up to 2 hours to run, how do I add a stop execution upon finding an error?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 23 Jan 2018 11:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429946#M106232</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-01-23T11:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429951#M106234</link>
      <description>&lt;P&gt;To be honest 1,500 lines of code isn't really the problem (I've seen much bigger programs) it's the quantity of data and how it's being processed which is causing the long run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could set the errorcheck option to STRICT as documented here -&amp;gt;&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n074sx2hkq8dzpn1ptoydcmzfspt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;" target="_blank"&gt;http://documentation.sas.com/?docsetId=lesysoptsref&amp;amp;docsetTarget=n074sx2hkq8dzpn1ptoydcmzfspt.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or use the errorabend option but that will terminate the whole session leaving you no wiser as to what went wrong....&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429951#M106234</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-01-23T11:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429955#M106235</link>
      <description>&lt;P&gt;Ensure the 1500 lines of code has been: modularised, validated, and stress tested.&amp;nbsp; Then an unexpected error will not happen.&amp;nbsp; Modularising the code will allow you to block the whole process up into smaller chunks, allowing for conditionally checking at various points.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question really is what does your documentation on the process say - you do have all the documentation e.g. functional design, testing, data structures etc.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429955#M106235</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-23T11:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429956#M106236</link>
      <description>Each month code is added by a range a different users and therefore that's why i want to include this ch eck.&lt;BR /&gt;&lt;BR /&gt;Still unsure how I do this.</description>
      <pubDate>Tue, 23 Jan 2018 11:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429956#M106236</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-01-23T11:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429957#M106237</link>
      <description>&lt;P&gt;Even more reason for modularistion and documentation.&amp;nbsp; Each new block should be documented and validated before being moved into the production process.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429957#M106237</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-23T12:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429961#M106238</link>
      <description>&lt;P&gt;Try these two options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options errorabend nosyntaxcheck;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429961#M106238</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-23T12:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429962#M106239</link>
      <description>Do I add this at the start of my code and execute the whole program?</description>
      <pubDate>Tue, 23 Jan 2018 12:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429962#M106239</guid>
      <dc:creator>Brandon16</dc:creator>
      <dc:date>2018-01-23T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429970#M106240</link>
      <description>Yes. Or add into autoexec.sas</description>
      <pubDate>Tue, 23 Jan 2018 13:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429970#M106240</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-23T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stop SAS when error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429983#M106241</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;, what is the benefit of adding nosyntaxcheck?  I think errorabend would be enough.  As I understand it, nosyntaxcheck is used to tell SAS to keep executing code after an error, rather than entering syntax check mode.</description>
      <pubDate>Tue, 23 Jan 2018 13:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stop-SAS-when-error/m-p/429983#M106241</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-01-23T13:48:41Z</dc:date>
    </item>
  </channel>
</rss>

