<?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: SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858282#M1663</link>
    <description>I believe this keys off of the exit code of the SAS session. Typically when SAS encounters a warning the exit code is changed to 1, and if SAS encounters an error, the exit code changes to 2. If something else is causing the SAS session's exit code to remain or change back to zero, the job would report as successful.&lt;BR /&gt;This could be done in SAS code (ABORT or SYSCC), or with a wrapper script, which is sometime done to prevent warnings from showing as failures (i.e. if $?=1 then rc=0; exit $rc).</description>
    <pubDate>Fri, 10 Feb 2023 15:23:21 GMT</pubDate>
    <dc:creator>gwootton</dc:creator>
    <dc:date>2023-02-10T15:23:21Z</dc:date>
    <item>
      <title>SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858260#M1662</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VIYA 3.5 we have noticed that for some jobs the status is "Successful" even if the log contains errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example if the job tried to triggered a SAS code using %include and the file was not available the log message was:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; warning: WARNING: Physical file does not exist, .&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error: ERROR: Cannot open %INCLUDE file TEST99.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;but the job status was "Successful".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wondering if there is a logical explanation for this, or it is a bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;smm662002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858260#M1662</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2023-02-10T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858282#M1663</link>
      <description>I believe this keys off of the exit code of the SAS session. Typically when SAS encounters a warning the exit code is changed to 1, and if SAS encounters an error, the exit code changes to 2. If something else is causing the SAS session's exit code to remain or change back to zero, the job would report as successful.&lt;BR /&gt;This could be done in SAS code (ABORT or SYSCC), or with a wrapper script, which is sometime done to prevent warnings from showing as failures (i.e. if $?=1 then rc=0; exit $rc).</description>
      <pubDate>Fri, 10 Feb 2023 15:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858282#M1663</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-10T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858287#M1664</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your answer.&lt;/P&gt;
&lt;P&gt;While I understand your explanation I think that this suppose to be part of the tool rather than adding small code twinks to "force" VIYA to understand that there are errors in the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the code has an error than the status should be "Failed" rather than "Successful".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;smm662002&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 16:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858287#M1664</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2023-02-10T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858296#M1665</link>
      <description>Sorry for the confusion, the tweaks would break it's ability to understand there was a failure rather than allow it. By default a warning or error change SAS' exit code from 0 (success) to 1 or 2 respectively (failure). However if the default configuration has been modified by a wrapper script for example to change the exit code from 1 or 2 back to zero, or your code explicitly changes the exit code, this could prevent that from working as expected.</description>
      <pubDate>Fri, 10 Feb 2023 16:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858296#M1665</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-02-10T16:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA 3.5 Environment Manager Monitor Job inconsistent Status results</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858305#M1666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution identified for this issue is to use &lt;STRONG&gt;options errorcheck=strict;&lt;/STRONG&gt; which is linked to the value of SYSCC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;smm662002&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 16:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-3-5-Environment-Manager-Monitor-Job-inconsistent-Status/m-p/858305#M1666</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2023-02-10T16:53:57Z</dc:date>
    </item>
  </channel>
</rss>

