<?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: system automatic variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/system-automatic-variables/m-p/252540#M47969</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/64404"&gt;@SAS_inquisitive﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Neither of these two captures error messages (in words). For error messages please see&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#n0f6lmit5jr1xen1dl1owpkufvfj.htm" target="_blank"&gt;SYSERRORTEXT&lt;/A&gt; (and for warning messages &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p1ikib7e81mbaon1iygs8ebnvhx8.htm" target="_blank"&gt;SYSWARNINGTEXT&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p11nt7mv7k9hl4n1x9zwkralgq1b.htm" target="_blank"&gt;SYSCC&lt;/A&gt; and &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#n1wrevo4roqsnxn1fbd9yezxvv9k.htm" target="_blank"&gt;SYSERR&lt;/A&gt; you will find only &lt;EM&gt;codes&lt;/EM&gt;, e.g. 1012. The difference between them is that SYSERR refers to the most recent DATA or PROC step (for some procedures), whereas SYSCC refers to the entire SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a consequence, SYSERR is reset to 0 (the code for "Execution completed successfully and without warning messages" [see documentation]) after a step was completed successfully, but SYSCC would still contain the error code it received possibly many steps earlier. Also, SYSCC is not restricted to DATA and ("some") PROC steps, but captures errors also, e.g., in global statements such as an OPTIONS statement. SYSERR, however, would not change after such a statement (whether successful or not).&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 21:23:57 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-02-25T21:23:57Z</dc:date>
    <item>
      <title>system automatic variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/system-automatic-variables/m-p/252526#M47968</link>
      <description>&lt;P&gt;I was trying to include some system automatic variables (syserr or syscc) to get some error meaages. I wonder which is appropriate to capture error mesages and what is the difference between them?&lt;/P&gt;&lt;PRE&gt;data test;
  set sashelp.class;
run;
%put &amp;amp;syscc;

data test;
  set sashelp.class;
run;
%put &amp;amp;syserr;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Feb 2016 20:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/system-automatic-variables/m-p/252526#M47968</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-25T20:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: system automatic variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/system-automatic-variables/m-p/252540#M47969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/64404"&gt;@SAS_inquisitive﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Neither of these two captures error messages (in words). For error messages please see&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#n0f6lmit5jr1xen1dl1owpkufvfj.htm" target="_blank"&gt;SYSERRORTEXT&lt;/A&gt; (and for warning messages &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p1ikib7e81mbaon1iygs8ebnvhx8.htm" target="_blank"&gt;SYSWARNINGTEXT&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#p11nt7mv7k9hl4n1x9zwkralgq1b.htm" target="_blank"&gt;SYSCC&lt;/A&gt; and &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/67912/HTML/default/viewer.htm#n1wrevo4roqsnxn1fbd9yezxvv9k.htm" target="_blank"&gt;SYSERR&lt;/A&gt; you will find only &lt;EM&gt;codes&lt;/EM&gt;, e.g. 1012. The difference between them is that SYSERR refers to the most recent DATA or PROC step (for some procedures), whereas SYSCC refers to the entire SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a consequence, SYSERR is reset to 0 (the code for "Execution completed successfully and without warning messages" [see documentation]) after a step was completed successfully, but SYSCC would still contain the error code it received possibly many steps earlier. Also, SYSCC is not restricted to DATA and ("some") PROC steps, but captures errors also, e.g., in global statements such as an OPTIONS statement. SYSERR, however, would not change after such a statement (whether successful or not).&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 21:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/system-automatic-variables/m-p/252540#M47969</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-25T21:23:57Z</dc:date>
    </item>
  </channel>
</rss>

