<?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 SAS Data Integration Studio will always return &amp;amp;JOB_RC = 0 even where there is Warning and Error in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-will-always-return-amp-JOB-RC-0-even/m-p/650961#M19252</link>
    <description>&lt;P&gt;I am using Status Handling tab in SAS DI Studio to handle different for Job with Success, Warning, and Error status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will then pass this status to a autocall macro script to update to a table accordingly. By right, when job success (JOB_RC = 0), it will pass in the value of success to my macro script via autocall. I did the same for warning and error. I also put&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%print Job_rc is &amp;amp;JOB_RC;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the status handling to see what is the job_rc as every job_rc indicates different job status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with success run, run with warning, and error, all returned &amp;amp;job_rc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am confused. Why is this happening? SAS DI Studio first assign job_rc =0 as standard in the job but there is no assignment again when the job ends? I am sure there must be a way for assigning the right job_rc value so that we can make use of this value under "Status Handling".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 02:19:00 GMT</pubDate>
    <dc:creator>WorkingMan</dc:creator>
    <dc:date>2020-05-27T02:19:00Z</dc:date>
    <item>
      <title>SAS Data Integration Studio will always return &amp;JOB_RC = 0 even where there is Warning and Error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-will-always-return-amp-JOB-RC-0-even/m-p/650961#M19252</link>
      <description>&lt;P&gt;I am using Status Handling tab in SAS DI Studio to handle different for Job with Success, Warning, and Error status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will then pass this status to a autocall macro script to update to a table accordingly. By right, when job success (JOB_RC = 0), it will pass in the value of success to my macro script via autocall. I did the same for warning and error. I also put&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%print Job_rc is &amp;amp;JOB_RC;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in the status handling to see what is the job_rc as every job_rc indicates different job status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with success run, run with warning, and error, all returned &amp;amp;job_rc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am confused. Why is this happening? SAS DI Studio first assign job_rc =0 as standard in the job but there is no assignment again when the job ends? I am sure there must be a way for assigning the right job_rc value so that we can make use of this value under "Status Handling".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 02:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-will-always-return-amp-JOB-RC-0-even/m-p/650961#M19252</guid>
      <dc:creator>WorkingMan</dc:creator>
      <dc:date>2020-05-27T02:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Data Integration Studio will always return &amp;JOB_RC = 0 even where there is Warning and E</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-will-always-return-amp-JOB-RC-0-even/m-p/651131#M19253</link>
      <description>&lt;P&gt;Status Handling Tab allows user to place a condition and an Action.&lt;/P&gt;
&lt;P&gt;Condition can be one of the following four:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Successful, Warning, Error, Send Job Status&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the condition, user selects an Action.&lt;/P&gt;
&lt;P&gt;Perhaps "Send Job Status" as a condition works best in this use case.&lt;/P&gt;
&lt;P&gt;For Action as well select "Send Job Status" . For action options, user can select which table the status should be sent to (select libref and dataset name). User may also select (optionally) a column name where user id information will be stored.&lt;/P&gt;
&lt;P&gt;At the end of the run "job status" is sent to that table. There are other multiple options within "Status Handling" tab.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If your issue is that job_rc code is somehow incorrect, post the scenario or job to demonstrate this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 16:25:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-Data-Integration-Studio-will-always-return-amp-JOB-RC-0-even/m-p/651131#M19253</guid>
      <dc:creator>VenuKadari</dc:creator>
      <dc:date>2020-05-27T16:25:55Z</dc:date>
    </item>
  </channel>
</rss>

