<?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 Error handling in Macro facility in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68876#M14957</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
This may be a tricky question, however i hope there will be a solution for the same.&lt;BR /&gt;
&lt;BR /&gt;
I have created one automated macro with error traping, like if there is an error in macro in any of the steps macro will through an error and stops execution.  Now i want to execute my macro from the error only after modification.&lt;BR /&gt;
&lt;BR /&gt;
For example i got the error in 3rd step of macro, i will change it and execute it again, then the macro should execute from 3rd step only not from step1 which reduces the execution time.&lt;BR /&gt;
&lt;BR /&gt;
In long process executions it will help us a lot. &lt;BR /&gt;
&lt;BR /&gt;
Any thoughts ?</description>
    <pubDate>Tue, 24 May 2011 07:53:48 GMT</pubDate>
    <dc:creator>MJyothi</dc:creator>
    <dc:date>2011-05-24T07:53:48Z</dc:date>
    <item>
      <title>Error handling in Macro facility</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68876#M14957</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
This may be a tricky question, however i hope there will be a solution for the same.&lt;BR /&gt;
&lt;BR /&gt;
I have created one automated macro with error traping, like if there is an error in macro in any of the steps macro will through an error and stops execution.  Now i want to execute my macro from the error only after modification.&lt;BR /&gt;
&lt;BR /&gt;
For example i got the error in 3rd step of macro, i will change it and execute it again, then the macro should execute from 3rd step only not from step1 which reduces the execution time.&lt;BR /&gt;
&lt;BR /&gt;
In long process executions it will help us a lot. &lt;BR /&gt;
&lt;BR /&gt;
Any thoughts ?</description>
      <pubDate>Tue, 24 May 2011 07:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68876#M14957</guid>
      <dc:creator>MJyothi</dc:creator>
      <dc:date>2011-05-24T07:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in Macro facility</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68877#M14958</link>
      <description>You will need to setup some external detection, either with a SAS file or an external file that gets written to as you progress through the macro execution.  You would then need to add appropriate SAS code to detect any prior progress and as needed suppress some SAS MACRO code logic execution.  The topic would be "restartability".&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 24 May 2011 14:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68877#M14958</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-24T14:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in Macro facility</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68878#M14959</link>
      <description>Do you typically see errors every time you run your program or are you just trying to debug it?</description>
      <pubDate>Thu, 02 Jun 2011 14:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68878#M14959</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2011-06-02T14:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error handling in Macro facility</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68879#M14960</link>
      <description>Take a look at the %ABORT statement.  Depending on the level of termination that you want to achieve, it may be helpful.  It also allows you to 'pass back' a return code which you may be able to use to determine your restart point.</description>
      <pubDate>Sun, 05 Jun 2011 05:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-handling-in-Macro-facility/m-p/68879#M14960</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2011-06-05T05:58:41Z</dc:date>
    </item>
  </channel>
</rss>

