<?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: How can I change the value of SYSERR  macro variable..... in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67371#M6760</link>
    <description>Using %include means that you have to look at your program as if it would be one big bunch of code. It's the same like having all the code in one single file.&lt;BR /&gt;
It will therefore depend on the error in the included code whether SAS can recover from it or not (i.e. a unbalanced quotation mark would be "desasterous").&lt;BR /&gt;
%syserr is an automatic read-only macro variable.&lt;BR /&gt;
&lt;BR /&gt;
The following gives you some more information about error handling:&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/lrcon.hlp/a000993436.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/lrcon.hlp/a000993436.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you want your jobs to run independently together with some error handling you might want to look at commands like 'x', 'system' or 'systask' - or consider to use a scheduler.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Sun, 28 Dec 2008 13:33:42 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2008-12-28T13:33:42Z</dc:date>
    <item>
      <title>How can I change the value of SYSERR  macro variable.....</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67370#M6759</link>
      <description>In my SAS program i am executing two another SAS program using %include statemnt like&lt;BR /&gt;
&lt;BR /&gt;
%include "d:\abc.sas";&lt;BR /&gt;
%put &amp;amp;syserr;&lt;BR /&gt;
%include "d:\xyz.sas";&lt;BR /&gt;
%put &amp;amp;syserr;&lt;BR /&gt;
&lt;BR /&gt;
in the abo code if ABC.SAS is having any error then first %put statement print non zero valu i'e' error ....&lt;BR /&gt;
&lt;BR /&gt;
i know very well  XYZ .sas is not having any error but still syserr after and in between the code of XYZ , prints non zero value of SYSERR .....&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
suppose in my program i include 10 other SAS program and after each one i process the syserr to know that recently executed SAS JOB(program) is successfully  or not.&lt;BR /&gt;
&lt;BR /&gt;
by the wa job no 5 out of 10 is having error then for rest all of the job SYSERR will be having non zero i.e. error&lt;BR /&gt;
&lt;BR /&gt;
what i want ....before start execution of each job ..syserr should be modified ..not having previous value.....&lt;BR /&gt;
&lt;BR /&gt;
please help</description>
      <pubDate>Sun, 28 Dec 2008 06:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67370#M6759</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-12-28T06:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the value of SYSERR  macro variable.....</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67371#M6760</link>
      <description>Using %include means that you have to look at your program as if it would be one big bunch of code. It's the same like having all the code in one single file.&lt;BR /&gt;
It will therefore depend on the error in the included code whether SAS can recover from it or not (i.e. a unbalanced quotation mark would be "desasterous").&lt;BR /&gt;
%syserr is an automatic read-only macro variable.&lt;BR /&gt;
&lt;BR /&gt;
The following gives you some more information about error handling:&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/lrcon.hlp/a000993436.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/lrcon.hlp/a000993436.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you want your jobs to run independently together with some error handling you might want to look at commands like 'x', 'system' or 'systask' - or consider to use a scheduler.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Sun, 28 Dec 2008 13:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67371#M6760</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-28T13:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change the value of SYSERR  macro variable.....</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67372#M6761</link>
      <description>In my experience, &amp;amp;syserr is not reliable and should only be used after thorough testing of all scenarios. There have been extensive debates on SAS-L if you want to see some history.&lt;BR /&gt;
If you are still seeking to control a process flow of SAS programs then the only reliable, home-grown solution uses scripting. For Windows, your choices are .bat files, WSH scripts or the hugely powerful PowerShell. &lt;BR /&gt;
However, all of these options have drawbacks and there is good reason that schedulers are expensive - it is very difficult to get right.</description>
      <pubDate>Wed, 07 Jan 2009 06:03:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-can-I-change-the-value-of-SYSERR-macro-variable/m-p/67372#M6761</guid>
      <dc:creator>acfarrer</dc:creator>
      <dc:date>2009-01-07T06:03:38Z</dc:date>
    </item>
  </channel>
</rss>

