<?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: Understanding of &amp;amp;syscc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610389#M177751</link>
    <description>&lt;P&gt;And if this is happening while developing in DI Studio, mind that you stay within the same workspace server session, so you need to reset syscc to zero manually before a test run.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 07:11:58 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-09T07:11:58Z</dc:date>
    <item>
      <title>Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610383#M177747</link>
      <description>&lt;P&gt;I'm trying to capture the return code of DI Job via &amp;amp;syscc. but I observed that it is not resetting for each run. It returns the previous return code for every run instead of the providing the actula Job Status. For example, If a Job has ended with Syntax error and the macro variable &amp;amp;syscc. returns 3000 which is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I correct the error and reran the Job then it should return as 0 if the Job has no warnings or error but it still producing the value as 3000 which is return code of previous run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm calling the following maro variable in the postcode section of the DI Job. My objective is to return the Job Status code of the Job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let status_cd=&amp;amp;syscc.;
%PUT *******status of the job is: &amp;amp;status_cd.*****;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please help me resolve this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 06:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610383#M177747</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-12-09T06:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610387#M177750</link>
      <description>&lt;P&gt;Inspect the whole log of the job, including what is happening in all the autoexec parts. A single failed libname sets syscc to a non-zero value, for example.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 07:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610387#M177750</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-09T07:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610389#M177751</link>
      <description>&lt;P&gt;And if this is happening while developing in DI Studio, mind that you stay within the same workspace server session, so you need to reset syscc to zero manually before a test run.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 07:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610389#M177751</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-09T07:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610396#M177754</link>
      <description>&lt;P&gt;Ok, Can I tweak my code like this to reset syscc to 0? I confirm there is no error or warning in my log file .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let syscc=0;
%let status_cd=&amp;amp;syscc.;
%PUT *******status of the job is: &amp;amp;status_cd.*****;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 07:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610396#M177754</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-12-09T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610398#M177755</link>
      <description>&lt;P&gt;That's exactly what you need to do.&lt;/P&gt;
&lt;P&gt;My "production" programs all have a comment block in which I set the necessary parameters (usually supplied by the scheduler) for a manual run, and the first line of that block is always&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let syscc=0;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 07:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610398#M177755</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-09T07:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610414#M177758</link>
      <description>&lt;P&gt;It is not resolving the issue either. DI Job has ended with error as there was some issue in 2nd and 3rd transformation but still &amp;amp;SYSCC returning the code as 0 instead of 3000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;6379       /*---- Start of Post-Process Code  ----*/
6380       
6381       %let syscc=0;
6382       %let status_cd=&amp;amp;syscc.;
SYMBOLGEN:  Macro variable SYSCC resolves to 0
6383       %PUT *******status of the job is: &amp;amp;status_cd.*****;
SYMBOLGEN:  Macro variable STATUS_CD resolves to 0
*******status of the job is: 0*****&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 08:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610414#M177758</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-12-09T08:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610419#M177759</link>
      <description>&lt;P&gt;It is VERY obvious that, if you set syscc=0 at the&amp;nbsp;&lt;EM&gt;end&lt;/EM&gt; of the job, it will return with a zero, no matter what happened during the job. The reset has to be done at the&amp;nbsp;&lt;EM&gt;beginning&lt;/EM&gt;, so that problems during the job register correctly.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 09:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/610419#M177759</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-09T09:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/984862#M379745</link>
      <description>&lt;P&gt;Is there a way to know what the codes represent? I will set syscc to 0 so my LSAF process flow continues. But I'm also sending a notification to myself of the status with the code. But which code(s)=error/warning?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 12:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/984862#M379745</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2026-03-17T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985000#M379776</link>
      <description>&lt;P&gt;Any non-zero code points to a problem and has to keep the scheduler from continuing with other jobs in the chain. To find out what caused the issue, read the log, and then correct your code or any other reason for the failure (like missing/incorrect input data).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 11:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985000#M379776</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-19T11:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985021#M379779</link>
      <description>&lt;P&gt;Thanks for your response. I already know that I don't want to stop the process flow whether there's a warning or error. But I need to investigate so I'm sending myself a message with the syscc value. I just want to know if it encountered an error or a warning. I can't find what the codes represent exactly. This is for SAS LSAF.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 07:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985021#M379779</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2026-03-20T07:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985027#M379780</link>
      <description>&lt;P&gt;There are papers that suggest syscc values 1-4 are warnings, and &amp;gt;4 are errors.&amp;nbsp; But the documentation doesn't make that claim.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;A SYSCC value of 0 at SAS termination indicates success for that operating environment. A nonzero value might indicate an error or warning condition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p11nt7mv7k9hl4n1x9zwkralgq1b.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p11nt7mv7k9hl4n1x9zwkralgq1b.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still use log scanning to catch error messages, warnings, and bad notes, and send myself those problematic messages.&amp;nbsp; If you search lexjansen.com, there are tons of papers on log scanning if you want to see that approach.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 12:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985027#M379780</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2026-03-20T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding of &amp;syscc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985113#M379783</link>
      <description>&lt;P&gt;Why do you want to continue a job chain when there is an&amp;nbsp;&lt;STRONG&gt;obvious&lt;/STRONG&gt; problem that might cause your data to be irreversebly corrupted?&lt;/P&gt;
&lt;P&gt;Anything else than a zero return code&amp;nbsp;&lt;STRONG&gt;MUST&lt;/STRONG&gt; not be allowed in automated execution.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2026 13:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Understanding-of-amp-syscc/m-p/985113#M379783</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-03-22T13:35:08Z</dc:date>
    </item>
  </channel>
</rss>

