<?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: SAS hashing algorithm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536916#M147612</link>
    <description>&lt;P&gt;&lt;EM&gt;This question has been asked to me in one of the tough SAS interview.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does not answer my question. Try to do some of the work yourself and then ask questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My reply would be another question: Do you mean the hashing function or the data set hash object?&lt;/P&gt;
&lt;P&gt;Calling things by their proper name is always useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 21:24:50 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-02-19T21:24:50Z</dc:date>
    <item>
      <title>SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536626#M147485</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone would help me with below concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"What is hashing algorithm in SAS?" , Can anyone explain with example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 01:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536626#M147485</guid>
      <dc:creator>jaiganesh</dc:creator>
      <dc:date>2019-02-19T01:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536629#M147487</link>
      <description>&lt;P&gt;What have you searched?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 01:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536629#M147487</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-19T01:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536688#M147517</link>
      <description>&lt;P&gt;This question has been asked to me in one of the tough SAS interview.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 10:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536688#M147517</guid>
      <dc:creator>jaiganesh</dc:creator>
      <dc:date>2019-02-19T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536691#M147518</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240933"&gt;@jaiganesh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;This question has been asked to me in one of the tough SAS interview.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are so many papers explaining hash-objects, i am sure they can be found using Google, Bing or any other search-site. You could, of course, just read the documentation provided at &lt;A href="http://www.sas.com/store/books/categories/usage-and-reference/sas-hash-object-programming-made-easy/prodBK_62230_en.html" target="_blank"&gt;http://www.sas.com/store/books/categories/usage-and-reference/sas-hash-object-programming-made-easy/prodBK_62230_en.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 10:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536691#M147518</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-19T10:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536716#M147533</link>
      <description>&lt;P&gt;According to KEY value to find its/corresponding DATA value .&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 13:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536716#M147533</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-02-19T13:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536916#M147612</link>
      <description>&lt;P&gt;&lt;EM&gt;This question has been asked to me in one of the tough SAS interview.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does not answer my question. Try to do some of the work yourself and then ask questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My reply would be another question: Do you mean the hashing function or the data set hash object?&lt;/P&gt;
&lt;P&gt;Calling things by their proper name is always useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 21:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536916#M147612</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-19T21:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536937#M147616</link>
      <description>&lt;P&gt;If you were asked about the "hashing &lt;STRONG&gt;&lt;EM&gt;algorithm&lt;/EM&gt;&lt;/STRONG&gt;" in SAS in an interview, then the interviewer does not know the meaning of their own question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They could be asking about the MD5 or various SHA hashing &lt;EM&gt;&lt;STRONG&gt;functions&lt;/STRONG&gt;&lt;/EM&gt;, but I doubt it.&amp;nbsp; It's probably about the hash &lt;EM&gt;&lt;STRONG&gt;object&lt;/STRONG&gt;&lt;/EM&gt;, a tool exclusively available in the SAS data step.&amp;nbsp; It&amp;nbsp;is very useful in particular for in-memory data lookup, data splitting,&amp;nbsp;and&amp;nbsp;aggregation, to mention a few.&amp;nbsp; I say "in-memory" because the hash object persists in SAS's memory as you read successive observations in a data step.&amp;nbsp;&amp;nbsp;This persistence (think of it as a "retain" for a data table rather than for just a set of variables) makes it very useful in situations in which you need to read a particular data set more than once to generate the result data of interest.&amp;nbsp; Or perhaps you simply want to "lookup" data in one data set that correspond to a key found in another data set&amp;nbsp; (if the lookup data is accessed multiple times, it's faster to have it in memory than to be re-read from disk).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside from being an in-memory object, the hash object data lookup speed is faster than binary search methods.&amp;nbsp; That's because instead of applying the binary search to one big bucket of keys, the same search is applied to a much smaller specific one of (say) 256 mutually exclusive buckets of keys.&amp;nbsp; The trick is to (1) know which bucket to search, and (2) have buckets that&amp;nbsp;contain roughly the same number of keys.&amp;nbsp; That's a property of some hashing functions (for all but the most pathological data), which underlie hash objects&amp;nbsp;where the bucket collection is maintained.&amp;nbsp; As a user of hash objects you never see the underlying hash function - instead you store and retrieve data based on whatever set of keys (say ID variable&amp;nbsp; or ID/DATE combinations) that are relevant to your task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 23:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536937#M147616</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-02-19T23:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536961#M147620</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/240933"&gt;@jaiganesh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone would help me with below concern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"What is hashing algorithm in SAS?" , Can anyone explain with example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If by "anyone" you mean Google, then sure...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/search?q=sas+hash+algorithm" target="_self"&gt;https://www.google.com/search?q=sas+hash+algorithm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post back after you've read the first five links.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(In this instance, this will prepare you much better for your next interview than your original post and subsequent replies...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 04:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/536961#M147620</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-02-20T04:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS hashing algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/537677#M147911</link>
      <description>Let me read about the MD5 or various SHA hashing functions.</description>
      <pubDate>Fri, 22 Feb 2019 14:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-hashing-algorithm/m-p/537677#M147911</guid>
      <dc:creator>jaiganesh</dc:creator>
      <dc:date>2019-02-22T14:01:46Z</dc:date>
    </item>
  </channel>
</rss>

