<?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 Reg Hash Technique to do Merging in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reg-Hash-Technique-to-do-Merging/m-p/731772#M227978</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am in the process of understanding Hash technique to perform dataset merge. I worked out simple examples, but it would be great if someone give me a equivalent hash code to perform below SAS merge.&lt;/P&gt;&lt;P&gt;There are non unique key fields and has OR condition in the where clause of SQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to implement this query using Hash?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table tablec as&lt;BR /&gt;Select distinct a.*&lt;BR /&gt;From tablea a join tableb b on ((a.ID =b.ID) or (a.ID=b.CURRENT_ID))&lt;BR /&gt;and (a.PROC_CODE =b.PROCEDURE_CODE)&lt;BR /&gt;and (a.START_DATE =b.from_date) and (a.END_DATE =b. END_DATE ) ;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 00:59:43 GMT</pubDate>
    <dc:creator>meenakshim</dc:creator>
    <dc:date>2021-04-07T00:59:43Z</dc:date>
    <item>
      <title>Reg Hash Technique to do Merging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-Hash-Technique-to-do-Merging/m-p/731772#M227978</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I am in the process of understanding Hash technique to perform dataset merge. I worked out simple examples, but it would be great if someone give me a equivalent hash code to perform below SAS merge.&lt;/P&gt;&lt;P&gt;There are non unique key fields and has OR condition in the where clause of SQL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to implement this query using Hash?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table tablec as&lt;BR /&gt;Select distinct a.*&lt;BR /&gt;From tablea a join tableb b on ((a.ID =b.ID) or (a.ID=b.CURRENT_ID))&lt;BR /&gt;and (a.PROC_CODE =b.PROCEDURE_CODE)&lt;BR /&gt;and (a.START_DATE =b.from_date) and (a.END_DATE =b. END_DATE ) ;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 00:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-Hash-Technique-to-do-Merging/m-p/731772#M227978</guid>
      <dc:creator>meenakshim</dc:creator>
      <dc:date>2021-04-07T00:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reg Hash Technique to do Merging</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-Hash-Technique-to-do-Merging/m-p/731784#M227981</link>
      <description>&lt;P&gt;For the duplicate keys and for the OR clause, you need to use the &lt;A href="https://support.sas.com/resources/papers/proceedings16/10200-2016.pdf" target="_self"&gt;&lt;EM&gt;duplicate&lt;/EM&gt; &lt;/A&gt;keyword, and to &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrcon/p1f92kngyuurnln120e2na45022k.htm" target="_self"&gt;iterate&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 02:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-Hash-Technique-to-do-Merging/m-p/731784#M227981</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-04-07T02:09:16Z</dc:date>
    </item>
  </channel>
</rss>

