<?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 Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226775#M54100</link>
    <description>&lt;P&gt;Since you have&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do while (not done) ; 
set dup end =done;
rc = h.find();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in your code that isn't working the contents of the data set DUP mentioned here could well be the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2015 16:50:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-09-22T16:50:01Z</dc:date>
    <item>
      <title>Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226629#M54068</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a large dataset and I want to use hash tables to loop thru all my clients and their decision at certain time point. Once the client has made a decision, I want to keep it for the current time period until a new decision is made. See attachment for current data and desired data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226629#M54068</guid>
      <dc:creator>Val_G</dc:creator>
      <dc:date>2015-09-21T18:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226668#M54075</link>
      <description>Your question is coming across a bit as more of a 'code my work for me' than a request for help. Can you post what you've tried and where you're having any issues?</description>
      <pubDate>Mon, 21 Sep 2015 22:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226668#M54075</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-21T22:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226755#M54095</link>
      <description>&lt;P&gt;Here is the code I have so far. The questions I have is:&lt;/P&gt;&lt;P&gt;why isn't h.find_next() giving me the next value?&lt;/P&gt;&lt;P&gt;how can I replace the current decision by the decision from the previous line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;length&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; client &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$1.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; time decision &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$9.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; client time decision;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A 1 Blank&lt;/P&gt;&lt;P&gt;A 2 DecisionX&lt;/P&gt;&lt;P&gt;A 3 Blank&lt;/P&gt;&lt;P&gt;B 1 DecisionY&lt;/P&gt;&lt;P&gt;B 2 Blank&lt;/P&gt;&lt;P&gt;B 3 DecisionZ&lt;/P&gt;&lt;P&gt;B 4 Blank&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;options&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;mlogic&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; hello;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dcl&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;hash&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; h(dataset:&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'test'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;, multidata&amp;amp;colon; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'y'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;h.definekey(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'client'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;h.definedata(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'client'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'time'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'decision'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;h.definedone();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;while&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; (not done) ; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; dup &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; =done;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;rc = h.find();&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; (rc = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; client= time= decision=;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;rc = h.find_next();&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;while&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;(rc = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'test'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; client= decision;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;rc = h.find_next();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;run&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 15:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226755#M54095</guid>
      <dc:creator>Val_G</dc:creator>
      <dc:date>2015-09-22T15:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226771#M54098</link>
      <description>&lt;P&gt;What is your DUP data set? It is needed to understand your problem.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226771#M54098</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2015-09-22T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226772#M54099</link>
      <description>no dup only test data as provided</description>
      <pubDate>Tue, 22 Sep 2015 16:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226772#M54099</guid>
      <dc:creator>Val_G</dc:creator>
      <dc:date>2015-09-22T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226775#M54100</link>
      <description>&lt;P&gt;Since you have&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;do while (not done) ; 
set dup end =done;
rc = h.find();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in your code that isn't working the contents of the data set DUP mentioned here could well be the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 16:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226775#M54100</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-22T16:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226782#M54101</link>
      <description>Unfortunately, the error persists even with this new code:&lt;BR /&gt;data test;&lt;BR /&gt;length client $1. time decision $9.;&lt;BR /&gt;input client time decision;&lt;BR /&gt;datalines;&lt;BR /&gt;A 1 Blank&lt;BR /&gt;A 2 DecisionX&lt;BR /&gt;A 3 Blank&lt;BR /&gt;B 1 DecisionY&lt;BR /&gt;B 2 Blank&lt;BR /&gt;B 3 DecisionZ&lt;BR /&gt;B 4 Blank&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;data hello;&lt;BR /&gt;dcl hash h(dataset:'test', multidata&amp;amp;colon; 'y');&lt;BR /&gt;h.definekey('client');&lt;BR /&gt;h.definedata('client', 'time', 'decision');&lt;BR /&gt;h.definedone();&lt;BR /&gt;&lt;BR /&gt;do while (not done) ;&lt;BR /&gt;set test end =done;&lt;BR /&gt;rc = h.find();&lt;BR /&gt;if (rc = 0) then do;&lt;BR /&gt;put client= time= decision=;&lt;BR /&gt;rc = h.find_next();&lt;BR /&gt;do while(rc = 0);&lt;BR /&gt;put 'test' client= decision;&lt;BR /&gt;rc = h.find_next();&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 22 Sep 2015 17:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226782#M54101</guid>
      <dc:creator>Val_G</dc:creator>
      <dc:date>2015-09-22T17:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226787#M54103</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Is this you want? If not, let us know your issue.



267  data hello;
268     dcl hash h(dataset:'test', multidata&amp;amp;colon; 'y');
269     h.definekey('client');
270     h.definedata('client', 'time', 'decision');
271     h.definedone();
272
273     do while (not done) ;
274        set test end =done;
275        rc = h.find();
276        if (rc = 0) then do;
277           put client= time= decision=;
278           rc = h.find_next();
279           do while(rc = 0);
280              put 'test' client= decision;
281              rc = h.find_next();
282
283           end;
284        end;
285     end;
286  stop;
287  run;

NOTE: There were 7 observations read from the data set WORK.TEST.
client=A time=1 decision=Blank
testclient=A Blank
testclient=A DecisionX
client=A time=1 decision=Blank
testclient=A Blank
testclient=A DecisionX
client=A time=1 decision=Blank
testclient=A Blank
testclient=A DecisionX
client=B time=1 decision=DecisionY
testclient=B Blank
testclient=B DecisionZ
testclient=B Blank
client=B time=1 decision=DecisionY
testclient=B Blank
testclient=B DecisionZ
testclient=B Blank
client=B time=1 decision=DecisionY
testclient=B Blank
testclient=B DecisionZ
testclient=B Blank
client=B time=1 decision=DecisionY
testclient=B Blank
testclient=B DecisionZ
testclient=B Blank
NOTE: There were 7 observations read from the data set WORK.TEST.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Sep 2015 17:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226787#M54103</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2015-09-22T17:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226788#M54104</link>
      <description>&lt;P&gt;&amp;amp;colon appears when posted. It should stand for colon(:).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 17:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226788#M54104</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2015-09-22T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hash tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226789#M54105</link>
      <description>Unfortunately, what I'm looking for would look like this:&lt;BR /&gt;client=A time=1 decision=Blank&lt;BR /&gt;testclient=A DecisionX&lt;BR /&gt;testclient=A DecisionX&lt;BR /&gt;client=B time=1 decision=DecisionY&lt;BR /&gt;testclient=B DecisionY&lt;BR /&gt;testclient=B DecisionZ&lt;BR /&gt;testclient=B DecisionZ&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Sep 2015 17:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-tables/m-p/226789#M54105</guid>
      <dc:creator>Val_G</dc:creator>
      <dc:date>2015-09-22T17:52:20Z</dc:date>
    </item>
  </channel>
</rss>

