<?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 Hash table and find values from other table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-and-find-values-from-other-table/m-p/812780#M320702</link>
    <description>Hello team,&lt;BR /&gt;I have a hash table created:&lt;BR /&gt;Data product. Result(drop =IDkey);&lt;BR /&gt;If _N_ = 0 then set thisdata;&lt;BR /&gt;Declare hash h(dataset: ‘thisdata’);&lt;BR /&gt;h.define key =(‘IDkey’);&lt;BR /&gt;h.definedata( ‘thisfield’ ‘that field’)&lt;BR /&gt;h.defineDone();&lt;BR /&gt;Do until (done)&lt;BR /&gt;Set sometable end=done;&lt;BR /&gt;rc=h.find(key:IDkey);&lt;BR /&gt;If rc ne 0 then then do&lt;BR /&gt;Thisfield= “ “;&lt;BR /&gt;That field=“ “;&lt;BR /&gt;End;&lt;BR /&gt;Output;&lt;BR /&gt;End;&lt;BR /&gt;Stop;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I understood by end of h.define(done), I can’t understand lines afterwards. Any help  os greatly appreciated. &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;blue &amp;amp; blue</description>
    <pubDate>Wed, 11 May 2022 19:06:08 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2022-05-11T19:06:08Z</dc:date>
    <item>
      <title>Hash table and find values from other table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-and-find-values-from-other-table/m-p/812780#M320702</link>
      <description>Hello team,&lt;BR /&gt;I have a hash table created:&lt;BR /&gt;Data product. Result(drop =IDkey);&lt;BR /&gt;If _N_ = 0 then set thisdata;&lt;BR /&gt;Declare hash h(dataset: ‘thisdata’);&lt;BR /&gt;h.define key =(‘IDkey’);&lt;BR /&gt;h.definedata( ‘thisfield’ ‘that field’)&lt;BR /&gt;h.defineDone();&lt;BR /&gt;Do until (done)&lt;BR /&gt;Set sometable end=done;&lt;BR /&gt;rc=h.find(key:IDkey);&lt;BR /&gt;If rc ne 0 then then do&lt;BR /&gt;Thisfield= “ “;&lt;BR /&gt;That field=“ “;&lt;BR /&gt;End;&lt;BR /&gt;Output;&lt;BR /&gt;End;&lt;BR /&gt;Stop;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I understood by end of h.define(done), I can’t understand lines afterwards. Any help  os greatly appreciated. &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;blue &amp;amp; blue</description>
      <pubDate>Wed, 11 May 2022 19:06:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-and-find-values-from-other-table/m-p/812780#M320702</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2022-05-11T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hash table and find values from other table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-and-find-values-from-other-table/m-p/812802#M320712</link>
      <description>&lt;P&gt;rc=&lt;/P&gt;
&lt;P&gt;Based on the observation from SOMETABLE, look in the hash table for matching value for IDKey.&amp;nbsp; Retrieve the values for 'Thisfield' and 'Thatfield' from the hash table, based on a match for IDKey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if rc ne 0&lt;/P&gt;
&lt;P&gt;If the search through the hash table does not find a matching value for IDKey, assign missing values to 'Thisfield' and 'Thatfield'&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 20:43:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-and-find-values-from-other-table/m-p/812802#M320712</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-05-11T20:43:09Z</dc:date>
    </item>
  </channel>
</rss>

