<?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 Syserror not resolving in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32104#M4231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run this code and it will be more clear what is happening:&amp;nbsp; The bold line is especially important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title "This is my test";&lt;/P&gt;&lt;P&gt;proc print data=sashelp.clas;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put SYSERR is this value: &amp;amp;syserr.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select Count(*) into :CONT from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put SYSERR is this value: &amp;amp;syserr.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put CONT is this value: &amp;amp;cont.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if (&amp;amp;cont = 0 and &amp;amp;syserr=0) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;or (&amp;amp;cont = 0 and &amp;amp;syserr &amp;gt; 0) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;or (&amp;amp;cont &amp;gt; 0 and &amp;amp;syserr &amp;gt; 0)&lt;/P&gt;&lt;P&gt;%then %do ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let V_STATUS=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;cont &amp;gt; 0 and &amp;amp;syserr=0&amp;nbsp; %THEN %do ;&lt;/P&gt;&lt;P&gt;%let V_STATUS=1;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put V_STATUS is this value:&amp;nbsp; &amp;amp;V_STATUS.; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 15:07:19 GMT</pubDate>
    <dc:creator>TriciaA</dc:creator>
    <dc:date>2012-01-19T15:07:19Z</dc:date>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32099#M4226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to execute below mentioned code , syserror is resolving always ZERO ,if any error occurs still its resolving 0 , any one can tell what"s wrong on this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.clss;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select Count(*) into :CONT from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options symbolgen ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;SYSERR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if (&amp;amp;cont = 0 and &amp;amp;syserr=0) or (&amp;amp;cont = 0 and &amp;amp;syserr &amp;gt; 0) or &lt;/P&gt;&lt;P&gt;(&amp;amp;cont &amp;gt; 0 and &amp;amp;syserr &amp;gt; 0)&lt;/P&gt;&lt;P&gt;%then %do ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let V_STATUS=0;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else;&lt;/P&gt;&lt;P&gt; %IF &amp;amp;cont &amp;gt; 0 and &amp;amp;syserr=0&amp;nbsp; %THEN %do ;&lt;/P&gt;&lt;P&gt;%let V_STATUS=1;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 06:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32099#M4226</guid>
      <dc:creator>RameshReddy</dc:creator>
      <dc:date>2012-01-18T06:41:18Z</dc:date>
    </item>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32100#M4227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the manual for SYSERR, "SYSERR automatic macro variable is reset at eachstep boundary."&amp;nbsp; The SQL procedure ran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 15:04:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32100#M4227</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-01-18T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32101#M4228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not clear with your answer ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 05:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32101#M4228</guid>
      <dc:creator>RameshReddy</dc:creator>
      <dc:date>2012-01-19T05:09:27Z</dc:date>
    </item>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32102#M4229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;amp;syserr is set to 3000 by the failing PROC PRINT, but it is reset to 0 by the successful PROC SQL, so it is always 0 when it gets to your %IF statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the OPTIONS SYMBOLGEN; at the top to see what is going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32102#M4229</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-01-19T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32103#M4230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to find out?&amp;nbsp; Doc already explained about syserr and it being set to 3000 because of the sashelp.clss file doesn't exist, but what are you expecting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your v_status macro variable won't resolve after the macro as it is a local rather than global macro variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32103#M4230</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-19T14:51:44Z</dc:date>
    </item>
    <item>
      <title>Syserror not resolving</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32104#M4231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run this code and it will be more clear what is happening:&amp;nbsp; The bold line is especially important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title "This is my test";&lt;/P&gt;&lt;P&gt;proc print data=sashelp.clas;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put SYSERR is this value: &amp;amp;syserr.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;select Count(*) into :CONT from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put SYSERR is this value: &amp;amp;syserr.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put CONT is this value: &amp;amp;cont.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if (&amp;amp;cont = 0 and &amp;amp;syserr=0) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;or (&amp;amp;cont = 0 and &amp;amp;syserr &amp;gt; 0) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;or (&amp;amp;cont &amp;gt; 0 and &amp;amp;syserr &amp;gt; 0)&lt;/P&gt;&lt;P&gt;%then %do ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let V_STATUS=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%else;&lt;/P&gt;&lt;P&gt;%IF &amp;amp;cont &amp;gt; 0 and &amp;amp;syserr=0&amp;nbsp; %THEN %do ;&lt;/P&gt;&lt;P&gt;%let V_STATUS=1;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put V_STATUS is this value:&amp;nbsp; &amp;amp;V_STATUS.; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Syserror-not-resolving/m-p/32104#M4231</guid>
      <dc:creator>TriciaA</dc:creator>
      <dc:date>2012-01-19T15:07:19Z</dc:date>
    </item>
  </channel>
</rss>

