<?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: Job Failure in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552201#M33512</link>
    <description>&lt;P&gt;The code is written in such a way that it will end the SAS process with a non-zero return code if it encounters a problem. On top of that, the wrapper shell script searches the log for things that might indicate a problem, and deliver a non-zero return code if SAS did not do so on its own.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 17:21:19 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-04-18T17:21:19Z</dc:date>
    <item>
      <title>Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552186#M33511</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell how does someone who is supporting a job know if it fails in the prod environment. Is any code included in every program to notify him automatically or the admin department notify him.?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552186#M33511</guid>
      <dc:creator>justusjillella</dc:creator>
      <dc:date>2019-04-18T16:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552201#M33512</link>
      <description>&lt;P&gt;The code is written in such a way that it will end the SAS process with a non-zero return code if it encounters a problem. On top of that, the wrapper shell script searches the log for things that might indicate a problem, and deliver a non-zero return code if SAS did not do so on its own.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552201#M33512</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-04-18T17:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552207#M33513</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Can you elaborate on what you mean by "non-zero return code if it encounters a problem". I'm a newbie to SAS&lt;/P&gt;&lt;P&gt;hope you don't mind.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552207#M33513</guid>
      <dc:creator>justusjillella</dc:creator>
      <dc:date>2019-04-18T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552240#M33514</link>
      <description>&lt;P&gt;Can you be more specific about how the Job is being executed in the production environment ? Is it triggered from a scheduler like LSF / Autosys etc. ? What is the OS ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned&amp;nbsp; by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;If you are using a Shell Wrapper script , A Non-Zero Return code will be passed on to your scheduler and based on the configuration in your environment a notification might be be triggered&amp;nbsp; to the production support in an event of a failure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, SAS Provides Automatic Macro variables which contain the Return codes. The &amp;amp;SYSCC in particular can be very useful as always captures the highest value as the Return code on exit.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is link to the documentation :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n16qiuy9np34a6n1pzjzn9943v7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=hostunx&amp;amp;docsetTarget=n16qiuy9np34a6n1pzjzn9943v7f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 18:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552240#M33514</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2019-04-18T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552272#M33515</link>
      <description>&lt;P&gt;Thanks for the reply. The job is triggered from LSF in UNIX&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 19:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552272#M33515</guid>
      <dc:creator>justusjillella</dc:creator>
      <dc:date>2019-04-18T19:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552492#M33521</link>
      <description>Then LSF should manage this for you. Except for a job/flow will halt, you need to configure/develop something that also sends the event to someone/-thing.</description>
      <pubDate>Fri, 19 Apr 2019 16:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552492#M33521</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-04-19T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Job Failure</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552552#M33522</link>
      <description>&lt;P&gt;You can configure LSF jobs to send emails if there is any error. Check out the job properties in SAS Management Console. We use this ourselves and it works a treat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2019 22:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Job-Failure/m-p/552552#M33522</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-19T22:42:54Z</dc:date>
    </item>
  </channel>
</rss>

