<?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: Two updates in one Oracle pass through in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/559229#M10265</link>
    <description>&lt;P&gt;I did the same&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 08:29:27 GMT</pubDate>
    <dc:creator>sameer112217</dc:creator>
    <dc:date>2019-05-16T08:29:27Z</dc:date>
    <item>
      <title>Two updates in one Oracle pass through</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557417#M9983</link>
      <description>&lt;P&gt;I am trying to run an Oracle Passthrough for multiple updates in a table but I am getting an error. If I run only one update, the code runs fine. How can I insert multiple update statement in one passthrough. For example if I remove the second update statement, I dont get any error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;connect to oracle as oracm ( PATH=** USER=**** PASSWORD="***" );&lt;BR /&gt;RESET NOPRINT;&lt;BR /&gt;EXECUTE (&lt;/P&gt;&lt;P&gt;update customer_sas_dq_output_New set RULE1 =1 where NVL(RULE1,null)&amp;lt;&amp;gt; 1&lt;BR /&gt;and policyno in (select policyno from Customer_Sas_DQ_Output_3yr_new where RULE1 =1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;update customer_sas_dq_output_New set RULE1 =0 where NVL(RULE1,null)&amp;lt;&amp;gt; 0&lt;BR /&gt;and policyno in (select policyno from Customer_Sas_DQ_Output_3yr_new where RULE1 =0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;) by oracm;&lt;BR /&gt;Disconnect from oracm;&lt;BR /&gt;Quit;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557417#M9983</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-05-09T12:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Two updates in one Oracle pass through</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557418#M9984</link>
      <description>&lt;P&gt;Here is the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: ORACLE execute error: ORA-00933: SQL command not properly ended.&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;40 Disconnect from oracm;&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;40 !&lt;BR /&gt;41 Quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.03 seconds&lt;BR /&gt;cpu time 0.02 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 12:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557418#M9984</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-05-09T12:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two updates in one Oracle pass through</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557423#M9985</link>
      <description>&lt;P&gt;I don't understand.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just use two EXECUTE statements to execute your two Oracle statements.&lt;/P&gt;
&lt;P&gt;You can do them both in the same PROC step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;EXECUTE (
update customer_sas_dq_output_New set RULE1 =1 
where NVL(RULE1,null)&amp;lt;&amp;gt; 1
  and policyno in (select policyno from Customer_Sas_DQ_Output_3yr_new where RULE1 =1)
) by oracm;
EXECUTE (
update customer_sas_dq_output_New set RULE1 =0 
where NVL(RULE1,null)&amp;lt;&amp;gt; 0
  and policyno in (select policyno from Customer_Sas_DQ_Output_3yr_new where RULE1 =0)
) by oracm;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2019 12:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/557423#M9985</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-09T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Two updates in one Oracle pass through</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/559229#M10265</link>
      <description>&lt;P&gt;I did the same&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 08:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Two-updates-in-one-Oracle-pass-through/m-p/559229#M10265</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2019-05-16T08:29:27Z</dc:date>
    </item>
  </channel>
</rss>

