<?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: Overrule RETURN CODE proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Overrule-RETURN-CODE-proc-sql/m-p/53174#M11255</link>
    <description>Force the system macro variable SYSCC to the value you want.&lt;BR /&gt;
&lt;BR /&gt;
Ideally you should save its value BEFORE executing the SAS SQL then restore it after.&lt;BR /&gt;
&lt;BR /&gt;
%let _SYSCC=&amp;amp;SYSCC; * save SYSCC;&lt;BR /&gt;
&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
%let SYSCC=&amp;amp;_SYSCC;&lt;BR /&gt;
&lt;BR /&gt;
Be aware that this will mask any type of error occurred between the two %let.&lt;BR /&gt;
&lt;BR /&gt;
Check the online doc: &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/tw3514-syscc-var.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/tw3514-syscc-var.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
    <pubDate>Fri, 05 Feb 2010 08:43:40 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2010-02-05T08:43:40Z</dc:date>
    <item>
      <title>Overrule RETURN CODE proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Overrule-RETURN-CODE-proc-sql/m-p/53173#M11254</link>
      <description>dear all, &lt;BR /&gt;
to use an update/insert in SAS SQL  you have to specify UNDO_POLICY=OPTIONAL or NONE&lt;BR /&gt;
But because of this i get a WARNING in the log and on mainframe this &lt;BR /&gt;
gives a RETURN CODE 4! &lt;BR /&gt;
HoW can i push this RC to 0 (zero) in the SQL or with an extra data step to tell OPC the job is ok?? &lt;BR /&gt;
&lt;BR /&gt;
Regards, &lt;BR /&gt;
Herman</description>
      <pubDate>Fri, 05 Feb 2010 08:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Overrule-RETURN-CODE-proc-sql/m-p/53173#M11254</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2010-02-05T08:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Overrule RETURN CODE proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Overrule-RETURN-CODE-proc-sql/m-p/53174#M11255</link>
      <description>Force the system macro variable SYSCC to the value you want.&lt;BR /&gt;
&lt;BR /&gt;
Ideally you should save its value BEFORE executing the SAS SQL then restore it after.&lt;BR /&gt;
&lt;BR /&gt;
%let _SYSCC=&amp;amp;SYSCC; * save SYSCC;&lt;BR /&gt;
&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
%let SYSCC=&amp;amp;_SYSCC;&lt;BR /&gt;
&lt;BR /&gt;
Be aware that this will mask any type of error occurred between the two %let.&lt;BR /&gt;
&lt;BR /&gt;
Check the online doc: &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/tw3514-syscc-var.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/tw3514-syscc-var.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Fri, 05 Feb 2010 08:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Overrule-RETURN-CODE-proc-sql/m-p/53174#M11255</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2010-02-05T08:43:40Z</dc:date>
    </item>
  </channel>
</rss>

