<?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: Hash Tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477455#M122988</link>
    <description>&lt;P&gt;You need to set phoneno to a value so that the find() method works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abc;
input phoneno $;
cards;
1234567
;
run;

data xyz;
if _n_=1 then do;
  dcl hash hh (dataset: 'abc');
  hh.definekey ('phoneno');
  hh.definedone();
end;
*phoneno = '1234567';
found = hh.find();
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Run that code, and you'll get your ERROR. Remove the comment asterisk, and it'll be OK.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 13:26:36 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-12T13:26:36Z</dc:date>
    <item>
      <title>Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477450#M122956</link>
      <description>&lt;P&gt;I have a dataset created 'abc' in a sasgrid location&lt;/P&gt;&lt;P&gt;I'm creating another dataset 'xyz' through that using hash table, for eg.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;if _n_=1 then do;&lt;/P&gt;&lt;P&gt;dcl hash hh (dataset: 'abc');&lt;/P&gt;&lt;P&gt;hh.definekey ('phoneno');&lt;/P&gt;&lt;P&gt;hh.definedone();&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;followed by a bunch of keep statements&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I try and run this, I get the following 2 errors:&lt;/P&gt;&lt;P&gt;ERROR: Undeclared key symbol&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;phoneno&amp;nbsp;&lt;/SPAN&gt;for hash object&lt;BR /&gt;ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does this even mean? what do I need to change to sort this? sorry I'm very new to hash tables&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477450#M122956</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477201#M122982</link>
      <description>&lt;P&gt;I have never used hash before, saw this piece of code being included in many places within a big project, can someone please help explain what each line means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF _n_ = 1 THEN DO;&lt;BR /&gt;Dcl Hash hh (dataset: 'work.CCEM');&lt;BR /&gt;hh.DefineKey ('tel);&lt;BR /&gt;hh.DefineDone ();&lt;BR /&gt;End;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 18:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477201#M122982</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-11T18:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477204#M122983</link>
      <description>&lt;P&gt;It declares a hash object with one variable that acts as key. The object is populated from column tel in dataset work.ccem.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477204#M122983</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-11T19:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477205#M122984</link>
      <description>&lt;P&gt;1. instantiate a hash object as soon as datastep loops past the data statement (_n_=1)&lt;/P&gt;&lt;P&gt;2. load the hash object with data by reading dataset&amp;nbsp;&lt;SPAN&gt;work.CCEM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;complete the instantiation&amp;nbsp;with definedone&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 19:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477205#M122984</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-11T19:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477206#M122985</link>
      <description>Thank you.</description>
      <pubDate>Wed, 11 Jul 2018 19:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477206#M122985</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-11T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477241#M122986</link>
      <description>&lt;P&gt;Just to add: Hash object &lt;FONT face="courier new,courier"&gt;hh&lt;/FONT&gt; will contain both a &lt;EM&gt;data item&lt;/EM&gt; and a &lt;EM&gt;key item&amp;nbsp;&lt;/EM&gt;corresponding to variable &lt;FONT face="courier new,courier"&gt;tel&lt;/FONT&gt;, because the DefineData method is not used. (Or better: "&lt;EM&gt;would&lt;/EM&gt; contain", if the closing single quote after "tel" wasn't missing.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are an experienced&amp;nbsp;data&amp;nbsp;step programmer, I recommend that you familiarize yourself with the hash object. It's a really useful tool.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 20:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477241#M122986</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-11T20:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477449#M122987</link>
      <description>&lt;P&gt;If I could add a follow up to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset created 'abc' in a sasgrid location&lt;/P&gt;&lt;P&gt;I'm creating another dataset 'xyz' through that using hash table, for eg.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;if _n_=1 then do;&lt;/P&gt;&lt;P&gt;dcl hash hh (dataset: 'abc');&lt;/P&gt;&lt;P&gt;hh.definekey ('phoneno');&lt;/P&gt;&lt;P&gt;hh.definedone();&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;followed by a bunch of keep statements&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I try and run this, I get the following 2 errors:&lt;/P&gt;&lt;P&gt;ERROR: Undeclared key symbol &lt;SPAN&gt;phoneno&amp;nbsp;&lt;/SPAN&gt;for hash object&lt;BR /&gt;ERROR: DATA STEP Component Object failure. Aborted during the EXECUTION phase.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what does this even mean? what do I need to change to sort this? sorry I'm very new to hash tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477449#M122987</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477451#M122957</link>
      <description>&lt;P&gt;Instead of going that entire route, can I do a normal read from the dataset using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;set abc;&lt;/P&gt;&lt;P&gt;keep ....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I was wondering why did whoever wrote the code (he left the company) add in the hash table anyway? what purpose was that serving?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477451#M122957</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477455#M122988</link>
      <description>&lt;P&gt;You need to set phoneno to a value so that the find() method works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abc;
input phoneno $;
cards;
1234567
;
run;

data xyz;
if _n_=1 then do;
  dcl hash hh (dataset: 'abc');
  hh.definekey ('phoneno');
  hh.definedone();
end;
*phoneno = '1234567';
found = hh.find();
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Run that code, and you'll get your ERROR. Remove the comment asterisk, and it'll be OK.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477455#M122988</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-12T13:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477456#M122960</link>
      <description>&lt;P&gt;If you don't have the&amp;nbsp;&lt;SPAN&gt;phoneno variable in your 'abc' dataset then you will get this type of error. Make sure that variable is present in the dataset.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477456#M122960</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-07-12T13:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477458#M122989</link>
      <description>&lt;P&gt;PS if you do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data xyz;
length phoneno $8;
if _n_=1 then do;
  dcl hash hh (dataset: 'abc');
  hh.definekey ('phoneno');
  hh.definedone();
end;
found = hh.find();
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;there's no ERROR, but you won't find anything, as the empty string is not present as a key in the hash.&lt;/P&gt;
&lt;P&gt;If your reference variable is present in another dataset, it will also work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data def;
input phoneno $;
cards;
1234567
9865443
;
run;

data xyz;
set def;
if _n_=1 then do;
  dcl hash hh (dataset: 'abc');
  hh.definekey ('phoneno');
  hh.definedone();
end;
found = hh.find();
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477458#M122989</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-12T13:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477466#M122964</link>
      <description>&lt;P&gt;Run a PROC CONTENTS step like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=abc;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and verify that the variable&amp;nbsp;&lt;SPAN&gt;phoneno is present in the data set abc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, if the DO Group is only followed by a bunch of Keep Statements and the hash object hh is not used, simply remove the entire do group. No reason for him to have left it there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477466#M122964</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-12T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477470#M122968</link>
      <description>I just checked, that variable is present in that dataset</description>
      <pubDate>Thu, 12 Jul 2018 13:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477470#M122968</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477471#M122969</link>
      <description>&lt;P&gt;This is obviously a continuation of &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Hash-Tables/m-p/477201" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Hash-Tables/m-p/477201&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Should I merge the threads?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477471#M122969</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-12T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477472#M122970</link>
      <description>the only place that hh is used later is this condition:&lt;BR /&gt;%include inclf(f1.sas)&lt;BR /&gt;if hh.find()=0;&lt;BR /&gt;%include inclf(f2.sas)&lt;BR /&gt;&lt;BR /&gt;what does this condition mean so I could replace this too and get rid of hh altogether?</description>
      <pubDate>Thu, 12 Jul 2018 13:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477472#M122970</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477473#M122971</link>
      <description>&lt;P&gt;Then it is because phoneno is not present in the PDV for the xyz data set. Add&amp;nbsp;an appropriate length statement or an if 0 then set abc like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data abc;
phoneno=123;
run;

data xyz;
if 0 then set abc;
if _n_=1 then do;
   dcl hash hh(dataset: 'abc');
   hh.definekey('phoneno');
   hh.definedone();
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or.. Simply remove the entire do group with the hash declaration if it does not serve a purpose.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477473#M122971</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-12T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477474#M122972</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122200"&gt;@astha8882000&lt;/a&gt;&amp;nbsp;Good morning and very good question. This raises the challenges of how sas compiles a hash object before execution phase starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if you do have the phoneno variable in your dataset 'abc'. you would still get that error. That's because hash object dot notation aren't compiled like the traditional variables in PDV when read from a sas dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming you have phoneno variable, the simple fix is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xyz;&lt;/P&gt;&lt;P&gt;if _n_=1 then do;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if 0 then set abc; /*notice this statement forcing sas to compile variables in the hash obj*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dcl hash hh (dataset: 'abc');&lt;/P&gt;&lt;P&gt;hh.definekey ('phoneno');&lt;/P&gt;&lt;P&gt;hh.definedone();&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to run with and without the above statement in &lt;STRONG&gt;bold&lt;/STRONG&gt;, and see the log. You will notice the difference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477474#M122972</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-07-12T13:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477475#M122973</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/122200"&gt;@astha8882000&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;the only place that hh is used later is this condition:&lt;BR /&gt;%include inclf(f1.sas)&lt;BR /&gt;if hh.find()=0;&lt;BR /&gt;%include inclf(f2.sas)&lt;BR /&gt;&lt;BR /&gt;what does this condition mean so I could replace this too and get rid of hh altogether?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You need to have a variable phoneno present (from any source) in your datastep, so that the find() method has a reference.&lt;/P&gt;
&lt;P&gt;The&lt;/P&gt;
&lt;PRE&gt;ERROR: Undeclared key symbol phoneno for hash object&lt;/PRE&gt;
&lt;P&gt;happens ONLY when the variable is not there, period. Run the codes I gave you in the other thread for verifying this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS to be more specific: the presence of phoneno in the &lt;U&gt;dataset used to create the hash&lt;/U&gt; DOES NOT create a datastep variable phoneno. That has to come from another source, eg another dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477475#M122973</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-12T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477482#M122979</link>
      <description>Sure, thank you! I wasn't sure how to do that.</description>
      <pubDate>Thu, 12 Jul 2018 14:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477482#M122979</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477486#M122990</link>
      <description>Is there a way to get rid of hash tables altogether? The only place that it is used later in the code is this:&lt;BR /&gt;&lt;BR /&gt;%include inclf(f1.sas)&lt;BR /&gt;if hh.find()=0;&lt;BR /&gt;%include inclf(f2.sas)&lt;BR /&gt;&lt;BR /&gt;does this condition mean if there are no records in hh, which means if it read no records from dataset abc, only then the include f2 is run else not? If I could replace this too and get rid of hh altogether?&lt;BR /&gt;&lt;BR /&gt;So for the initial part of the code I could just read the dataset abc into xyz using data and set steps like I would normally do, do you think that might work?</description>
      <pubDate>Thu, 12 Jul 2018 14:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-hash-tables/m-p/477486#M122990</guid>
      <dc:creator>astha8882000</dc:creator>
      <dc:date>2018-07-12T14:07:05Z</dc:date>
    </item>
  </channel>
</rss>

