<?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 Working with SYSWARNINGTEXT macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Working-with-SYSWARNINGTEXT-macro-variable/m-p/31532#M6038</link>
    <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am conducting simulations and for some iterations I got a warning message because the model does not converge. In these cases I have to repeat the iteration because I want to reach 10000 iterations without any warning. &lt;BR /&gt;
&lt;BR /&gt;
To do such a thing I was thinking to use the macro variable SYSWARNINGTEXT but I found that this macro is not updated until the next warning message, so I can not detect when after a model with a warning message I have a correct one.&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
set doesnotexist;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;SYSWARNINGTEXT;&lt;BR /&gt;
&lt;BR /&gt;
data b;&lt;BR /&gt;
set _NULL_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;SYSWARNINGTEXT;&lt;BR /&gt;
&lt;BR /&gt;
Any idea?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
Juanvte.</description>
    <pubDate>Wed, 10 Nov 2010 10:54:06 GMT</pubDate>
    <dc:creator>JuanVte</dc:creator>
    <dc:date>2010-11-10T10:54:06Z</dc:date>
    <item>
      <title>Working with SYSWARNINGTEXT macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-with-SYSWARNINGTEXT-macro-variable/m-p/31532#M6038</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I am conducting simulations and for some iterations I got a warning message because the model does not converge. In these cases I have to repeat the iteration because I want to reach 10000 iterations without any warning. &lt;BR /&gt;
&lt;BR /&gt;
To do such a thing I was thinking to use the macro variable SYSWARNINGTEXT but I found that this macro is not updated until the next warning message, so I can not detect when after a model with a warning message I have a correct one.&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
&lt;BR /&gt;
data a;&lt;BR /&gt;
set doesnotexist;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;SYSWARNINGTEXT;&lt;BR /&gt;
&lt;BR /&gt;
data b;&lt;BR /&gt;
set _NULL_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;SYSWARNINGTEXT;&lt;BR /&gt;
&lt;BR /&gt;
Any idea?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks,&lt;BR /&gt;
Juanvte.</description>
      <pubDate>Wed, 10 Nov 2010 10:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-with-SYSWARNINGTEXT-macro-variable/m-p/31532#M6038</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2010-11-10T10:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Working with SYSWARNINGTEXT macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Working-with-SYSWARNINGTEXT-macro-variable/m-p/31533#M6039</link>
      <description>I solved with the SYSERR macro variable.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;SYSERR can contain the following values: &lt;BR /&gt;
&lt;BR /&gt;
Value  Description  &lt;BR /&gt;
0  Execution completed successfully and without warning messages. &lt;BR /&gt;
1  Execution was canceled by a user with a RUN CANCEL statement. &lt;BR /&gt;
2  Execution was canceled by a user with an ATTN or BREAK command. &lt;BR /&gt;
3  An error in a program run in batch or non-interactive mode caused SAS to enter syntax-check mode. &lt;BR /&gt;
4  Execution completed successfully but with warning messages. &lt;BR /&gt;
5  Execution was canceled by a user with an ABORT CANCEL statement. &lt;BR /&gt;
6 Execution was canceled by a user with an ABORT CANCEL FILE statement. &lt;BR /&gt;
&amp;gt;6 An error occurred. The value returned is procedure-dependent.&lt;/I&gt; &lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
Juanvte</description>
      <pubDate>Wed, 10 Nov 2010 12:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Working-with-SYSWARNINGTEXT-macro-variable/m-p/31533#M6039</guid>
      <dc:creator>JuanVte</dc:creator>
      <dc:date>2010-11-10T12:34:42Z</dc:date>
    </item>
  </channel>
</rss>

