<?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: Hash Merge in Data step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50494#M13795</link>
    <description>Please note that a hash merge is not the only way to improve performance. A lookup SAS format created from your product table can also be a lot faster and simpler to code.The number of discrete loan numbers are you joining on should influence your chosen lookup technique. Be aware there are memory limitations with both hash tables and lookup formats.</description>
    <pubDate>Thu, 14 Apr 2011 21:19:50 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2011-04-14T21:19:50Z</dc:date>
    <item>
      <title>Hash Merge in Data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50492#M13793</link>
      <description>Trying to determine the syntax for converting the following (simplified) process to a hash merge for speed purposes.  Thanks!&lt;BR /&gt;
&lt;BR /&gt;
data c;&lt;BR /&gt;
merge a(in=ina keep = loan_no) b(in=inb keep=loan_no product);&lt;BR /&gt;
by loan_no;&lt;BR /&gt;
if ina;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Should only keep loans in A and find the product in B....</description>
      <pubDate>Thu, 14 Apr 2011 14:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50492#M13793</guid>
      <dc:creator>wcpatton</dc:creator>
      <dc:date>2011-04-14T14:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Merge in Data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50493#M13794</link>
      <description>The SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website has several excellent technical / conference reference items on this topic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
hash table merge site:sas.com</description>
      <pubDate>Thu, 14 Apr 2011 20:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50493#M13794</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-04-14T20:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Merge in Data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50494#M13795</link>
      <description>Please note that a hash merge is not the only way to improve performance. A lookup SAS format created from your product table can also be a lot faster and simpler to code.The number of discrete loan numbers are you joining on should influence your chosen lookup technique. Be aware there are memory limitations with both hash tables and lookup formats.</description>
      <pubDate>Thu, 14 Apr 2011 21:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50494#M13795</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-04-14T21:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Merge in Data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50495#M13796</link>
      <description>[pre]&lt;BR /&gt;
data a(drop=rc);&lt;BR /&gt;
 declare hash hh(hashexp:10);&lt;BR /&gt;
  hh.definekey('loan_no');&lt;BR /&gt;
  hh.definedata('product');&lt;BR /&gt;
  hh.definedone();&lt;BR /&gt;
&lt;BR /&gt;
 do until(last);&lt;BR /&gt;
  set b( keep=loan_no product)  end=last;&lt;BR /&gt;
  then hh.add();&lt;BR /&gt;
 end;&lt;BR /&gt;
&lt;BR /&gt;
 do until(_last);&lt;BR /&gt;
  set a(keep = loan_no)  end=_last;&lt;BR /&gt;
  call missing(product);&lt;BR /&gt;
  rc=hh.find();&lt;BR /&gt;
  output;&lt;BR /&gt;
 end;&lt;BR /&gt;
stop;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Fri, 15 Apr 2011 05:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Merge-in-Data-step/m-p/50495#M13796</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-15T05:04:30Z</dc:date>
    </item>
  </channel>
</rss>

