<?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 Object in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/712927#M27091</link>
    <description>&lt;P&gt;once I create hash object and depending on hash.find result (if rc=0) How I can create two output table, like if I find the key result goes to one table and if key did not find goes to another table.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 23:27:22 GMT</pubDate>
    <dc:creator>pkp</dc:creator>
    <dc:date>2021-01-20T23:27:22Z</dc:date>
    <item>
      <title>Hash Object</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/712927#M27091</link>
      <description>&lt;P&gt;once I create hash object and depending on hash.find result (if rc=0) How I can create two output table, like if I find the key result goes to one table and if key did not find goes to another table.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 23:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/712927#M27091</guid>
      <dc:creator>pkp</dc:creator>
      <dc:date>2021-01-20T23:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Object</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/712931#M27093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/280440"&gt;@pkp&lt;/a&gt;&amp;nbsp; Please see if this example helps-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data lookup;
 do key=1 to 3;
  data=rand('uniform')*100;
  output;
 end;
run;

data base;
 do key=1 to 10;
  output;
 end;
run;

data one two;
 if _n_=1 then do;
 if 0 then set lookup;
  dcl hash h(dataset:'lookup');
  h.definekey('key');
  h.definedata('data');
  h.definedone();
 end;
 set base;
 rc=h.find();
 if rc=0 then output one;
 else do;
  call missing(data);
  output two;
 end;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 23:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/712931#M27093</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2021-01-20T23:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Object</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/713403#M27155</link>
      <description>Thanks a lot&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Jan 2021 16:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hash-Object/m-p/713403#M27155</guid>
      <dc:creator>pkp</dc:creator>
      <dc:date>2021-01-22T16:20:13Z</dc:date>
    </item>
  </channel>
</rss>

