<?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 Merging useing Hash tables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397684#M25565</link>
    <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just come across Hash tables based on a previous question I raised on this forum yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently merging a few datasets (these are monthly datasets and I will merger for next month's data, being September), using the code below. I've read the Hash tables could make this process a lot quicker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone assist in using Hash Tables to merge the below datasets and also cater for new monthly datasets to be merged also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; reports.invoice;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;merge&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;reports.invoicejul15&lt;/P&gt;&lt;P&gt;reports.invoiceaug15&lt;/P&gt;&lt;P&gt;reports.invoicesep15&lt;/P&gt;&lt;P&gt;reports.invoiceoct15&lt;/P&gt;&lt;P&gt;reports.invoicenov15&lt;/P&gt;&lt;P&gt;reports.invoicedec15&lt;/P&gt;&lt;P&gt;reports.invoicejan16&lt;/P&gt;&lt;P&gt;reports.invoicefeb16&lt;/P&gt;&lt;P&gt;reports.invoicemar16&lt;/P&gt;&lt;P&gt;reports.invoiceapr16&lt;/P&gt;&lt;P&gt;reports.invoicemay16&lt;/P&gt;&lt;P&gt;reports.invoicejun16&lt;/P&gt;&lt;P&gt;reports.invoicejul16&lt;/P&gt;&lt;P&gt;reports.invoiceaug16&lt;/P&gt;&lt;P&gt;reports.invoicesep16&lt;/P&gt;&lt;P&gt;reports.invoiceoct16&lt;/P&gt;&lt;P&gt;reports.invoicenov16&lt;/P&gt;&lt;P&gt;reports.invoicedec16&lt;/P&gt;&lt;P&gt;reports.invoicejan17&lt;/P&gt;&lt;P&gt;reports.invoicefeb17&lt;/P&gt;&lt;P&gt;reports.invoicemar17&lt;/P&gt;&lt;P&gt;reports.invoiceapr17&lt;/P&gt;&lt;P&gt;reports.invoicemay17&lt;/P&gt;&lt;P&gt;reports.invoicejun17&lt;/P&gt;&lt;P&gt;reports.invoicejul17&lt;/P&gt;&lt;P&gt;reports.invoiceaug17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Extract_date; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Invoice_Balance &amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 04:15:31 GMT</pubDate>
    <dc:creator>Haydn</dc:creator>
    <dc:date>2017-09-21T04:15:31Z</dc:date>
    <item>
      <title>Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397684#M25565</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just come across Hash tables based on a previous question I raised on this forum yesterday.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently merging a few datasets (these are monthly datasets and I will merger for next month's data, being September), using the code below. I've read the Hash tables could make this process a lot quicker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone assist in using Hash Tables to merge the below datasets and also cater for new monthly datasets to be merged also&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; reports.invoice;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;merge&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;reports.invoicejul15&lt;/P&gt;&lt;P&gt;reports.invoiceaug15&lt;/P&gt;&lt;P&gt;reports.invoicesep15&lt;/P&gt;&lt;P&gt;reports.invoiceoct15&lt;/P&gt;&lt;P&gt;reports.invoicenov15&lt;/P&gt;&lt;P&gt;reports.invoicedec15&lt;/P&gt;&lt;P&gt;reports.invoicejan16&lt;/P&gt;&lt;P&gt;reports.invoicefeb16&lt;/P&gt;&lt;P&gt;reports.invoicemar16&lt;/P&gt;&lt;P&gt;reports.invoiceapr16&lt;/P&gt;&lt;P&gt;reports.invoicemay16&lt;/P&gt;&lt;P&gt;reports.invoicejun16&lt;/P&gt;&lt;P&gt;reports.invoicejul16&lt;/P&gt;&lt;P&gt;reports.invoiceaug16&lt;/P&gt;&lt;P&gt;reports.invoicesep16&lt;/P&gt;&lt;P&gt;reports.invoiceoct16&lt;/P&gt;&lt;P&gt;reports.invoicenov16&lt;/P&gt;&lt;P&gt;reports.invoicedec16&lt;/P&gt;&lt;P&gt;reports.invoicejan17&lt;/P&gt;&lt;P&gt;reports.invoicefeb17&lt;/P&gt;&lt;P&gt;reports.invoicemar17&lt;/P&gt;&lt;P&gt;reports.invoiceapr17&lt;/P&gt;&lt;P&gt;reports.invoicemay17&lt;/P&gt;&lt;P&gt;reports.invoicejun17&lt;/P&gt;&lt;P&gt;reports.invoicejul17&lt;/P&gt;&lt;P&gt;reports.invoiceaug17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Extract_date; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Invoice_Balance &amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 04:15:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397684#M25565</guid>
      <dc:creator>Haydn</dc:creator>
      <dc:date>2017-09-21T04:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397686#M25566</link>
      <description>&lt;P&gt;A better approach would be to create an invoice history table where you just add the latest month's data each month, perhaps something like this? It does assume that you are not updating prior months as well though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data reports.invoice_history;
merge reports.invoice_history
reports.invoiceaug17 
;
by Extract_date;
　
where Invoice_Balance &amp;gt;0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 04:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397686#M25566</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-09-21T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397687#M25567</link>
      <description>Thanks for your quick response, unfortunately we sometimes (more often than I like) have to go and update prior months.</description>
      <pubDate>Thu, 21 Sep 2017 04:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397687#M25567</guid>
      <dc:creator>Haydn</dc:creator>
      <dc:date>2017-09-21T04:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397688#M25568</link>
      <description>&lt;P&gt;Not seeing the data structure, but it's likely that MERGE is overkill and what is slowing down the program. &amp;nbsp;Wouldn't SET instead of MERGE give you what you need? &amp;nbsp;It would definitely be faster.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 05:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397688#M25568</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-21T05:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397704#M25571</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;- I've done a lot of work in the past evaluating performance of different types of merge and it's my experience that unless you're working with fairly large data sets the overhead of hash merging makes it slower than conventional merging. Of course if you have a REALLY large data set then hash merging wins hands down......&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 07:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397704#M25571</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-21T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397959#M25583</link>
      <description>Have changed it to SET. Thanks for the advice.</description>
      <pubDate>Thu, 21 Sep 2017 23:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397959#M25583</guid>
      <dc:creator>Haydn</dc:creator>
      <dc:date>2017-09-21T23:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging useing Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397960#M25584</link>
      <description>The merged datasets currently has 4.8mil rows in it. Not sure if that is defined as a really large dataset.</description>
      <pubDate>Thu, 21 Sep 2017 23:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-useing-Hash-tables/m-p/397960#M25584</guid>
      <dc:creator>Haydn</dc:creator>
      <dc:date>2017-09-21T23:07:23Z</dc:date>
    </item>
  </channel>
</rss>

