<?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 how to use hash object for  data integration &amp;amp; data aggregation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614370#M179571</link>
    <description>&lt;P&gt;proc sql;&lt;BR /&gt;create table SUMM3_REPEAT_CUST as&lt;BR /&gt;select M.CNCPT_NM&lt;BR /&gt;, M.TRRTRY_SHRT_NM&lt;BR /&gt;, (C.REPEAT_CUST/M.CUST_CY) as REPEAT_CUST_PER_CY format=percent8.2&lt;BR /&gt;, (L.REPEAT_CUST/M.CUST_LY) as REPEAT_CUST_PER_LY format=percent8.2&lt;BR /&gt;, (calculated REPEAT_CUST_PER_CY - calculated REPEAT_CUST_PER_LY) as REPEAT_CUST_PP_CHNG&lt;BR /&gt;, (C.REPEAT_CUST_REV/M.REV_CY) as REPEAT_CUST_REV_PER_CY format=percent8.2&lt;BR /&gt;, (L.REPEAT_CUST_REV/M.REV_LY) as REPEAT_CUST_REV_PER_LY format=percent8.2&lt;BR /&gt;, (calculated REPEAT_CUST_REV_PER_CY - calculated REPEAT_CUST_REV_PER_LY) as REPEAT_CUST_REV_PP_CHNG&lt;BR /&gt;from SUMM1_REV_TREE M&lt;BR /&gt;left join REPEAT_CUST_CY C on M.CNCPT_NM=C.CNCPT_NM and M.TRRTRY_SHRT_NM=C.TRRTRY_SHRT_NM&lt;BR /&gt;left join REPEAT_CUST_LY L on M.CNCPT_NM=L.CNCPT_NM and M.TRRTRY_SHRT_NM=L.TRRTRY_SHRT_NM&lt;BR /&gt;order by 1,2&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a sample code which I want to covert to hash objects but due to few study materials available online regarding Hash coding. I'm not being able to find a solutaion. someone please help me out ASAP&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 11:18:38 GMT</pubDate>
    <dc:creator>Bharat_P</dc:creator>
    <dc:date>2019-12-30T11:18:38Z</dc:date>
    <item>
      <title>how to use hash object for  data integration &amp; data aggregation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614370#M179571</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;create table SUMM3_REPEAT_CUST as&lt;BR /&gt;select M.CNCPT_NM&lt;BR /&gt;, M.TRRTRY_SHRT_NM&lt;BR /&gt;, (C.REPEAT_CUST/M.CUST_CY) as REPEAT_CUST_PER_CY format=percent8.2&lt;BR /&gt;, (L.REPEAT_CUST/M.CUST_LY) as REPEAT_CUST_PER_LY format=percent8.2&lt;BR /&gt;, (calculated REPEAT_CUST_PER_CY - calculated REPEAT_CUST_PER_LY) as REPEAT_CUST_PP_CHNG&lt;BR /&gt;, (C.REPEAT_CUST_REV/M.REV_CY) as REPEAT_CUST_REV_PER_CY format=percent8.2&lt;BR /&gt;, (L.REPEAT_CUST_REV/M.REV_LY) as REPEAT_CUST_REV_PER_LY format=percent8.2&lt;BR /&gt;, (calculated REPEAT_CUST_REV_PER_CY - calculated REPEAT_CUST_REV_PER_LY) as REPEAT_CUST_REV_PP_CHNG&lt;BR /&gt;from SUMM1_REV_TREE M&lt;BR /&gt;left join REPEAT_CUST_CY C on M.CNCPT_NM=C.CNCPT_NM and M.TRRTRY_SHRT_NM=C.TRRTRY_SHRT_NM&lt;BR /&gt;left join REPEAT_CUST_LY L on M.CNCPT_NM=L.CNCPT_NM and M.TRRTRY_SHRT_NM=L.TRRTRY_SHRT_NM&lt;BR /&gt;order by 1,2&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a sample code which I want to covert to hash objects but due to few study materials available online regarding Hash coding. I'm not being able to find a solutaion. someone please help me out ASAP&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 11:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614370#M179571</guid>
      <dc:creator>Bharat_P</dc:creator>
      <dc:date>2019-12-30T11:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to use hash object for  data integration &amp; data aggregation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614383#M179576</link>
      <description>&lt;P&gt;I don't see any aggregation, only joining an row level calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need a hash table? Performance issuues (then share the log with PROC SQL _tree/_method).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why ASAP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And, what have you tried so far, and what is your challenge?&lt;/P&gt;
&lt;P&gt;If you don't how to start at all, revert to examples and training.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 12:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614383#M179576</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-12-30T12:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to use hash object for  data integration &amp; data aggregation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614516#M179655</link>
      <description>&lt;P&gt;Forget the integration part I wrote.I want to join the same tables with hash objects. The code I shared is a part of many such joining I want to do with Hash coding. If I get a solution for this then based on this code I can manage to do the other joining as well. If you or anyone can manage to help me..it will be great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 05:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614516#M179655</guid>
      <dc:creator>Bharat_P</dc:creator>
      <dc:date>2019-12-31T05:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to use hash object for  data integration &amp; data aggregation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614525#M179661</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/305102"&gt;@Bharat_P&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Forget the integration part I wrote.I want to join the same tables with hash objects. The code I shared is a part of many such joining I want to do with Hash coding. If I get a solution for this then based on this code I can manage to do the other joining as well. If you or anyone can manage to help me..it will be great&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess you're after actual code and not just narrative. If so then please post sample data for all the source tables (in the form of working and tested SAS data step code) so we can spend the time for the solution.&lt;/P&gt;
&lt;P&gt;Please make sure the sample data has actually matching keys - and also explain the the relationships between the tables (1:1, 1:N, ....).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your real data: The tables for the left joins must fit into memory. What data volumes are you actually dealing with?&lt;/P&gt;
&lt;P&gt;I like the options SAS hash tables provide but it's not a fit-for-all approach. What's your reason for wanting to change the SQL to data step a hash lookup?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for learning to use the hash object:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides of the SAS documentation there are quite a few white papers out there (not hard to Google) plus a great book.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 07:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-hash-object-for-data-integration-amp-data-aggregation/m-p/614525#M179661</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-12-31T07:24:15Z</dc:date>
    </item>
  </channel>
</rss>

