<?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: Merge in PROC SQL/Libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508979#M136760</link>
    <description>&lt;P&gt;You'll get the fastest performance, either with:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) SQL Passthrough since the code is literally just transferred to the server - and would have to be Oracle SQL anyways&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Can you describe some more? There may be a faster SAS way to update this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Oct 2018 01:33:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-10-31T01:33:59Z</dc:date>
    <item>
      <title>Merge in PROC SQL/Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508978#M136759</link>
      <description>&lt;P&gt;Hello, is there a proc sql alternative of Oracle Merge Statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.oracletutorial.com/oracle-basics/oracle-merge/" target="_blank"&gt;http://www.oracletutorial.com/oracle-basics/oracle-merge/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to update Oracle table using value in SAS dataset within proc sql. There are multiple values to be updated . As of now, the query looks like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update oracle_tbl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set value_1 = (select value_1 from sas_dataset where id = 1) ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value_2 = (select value_2 from sas_dataset where id = 1)&lt;/P&gt;&lt;P&gt;where exists( ) and other filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to speed up performance. Please suggest if any. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 00:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508978#M136759</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2018-10-31T00:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Merge in PROC SQL/Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508979#M136760</link>
      <description>&lt;P&gt;You'll get the fastest performance, either with:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) SQL Passthrough since the code is literally just transferred to the server - and would have to be Oracle SQL anyways&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Can you describe some more? There may be a faster SAS way to update this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 01:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508979#M136760</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-31T01:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merge in PROC SQL/Libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508991#M136762</link>
      <description>&lt;P&gt;A few considerations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fastest is to upload your update table to Oracle into a temp space, and run the update query there using pass-through.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not possible, the next fastest is to delete the old rows, and append the new ones.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Updating one row at a time will always be slow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at the &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113591.htm" target="_self"&gt;options for the Oracle engine&lt;/A&gt;. In this case, the &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a003113614.htm" target="_self"&gt;bulkload options&lt;/A&gt;&amp;nbsp; and the &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001342400.htm" target="_self"&gt;updatebuff&lt;/A&gt;&amp;nbsp;option&amp;nbsp;are probably the ones that matter most.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 02:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-in-PROC-SQL-Libname/m-p/508991#M136762</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-10-31T02:36:02Z</dc:date>
    </item>
  </channel>
</rss>

