<?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: Create Unique Data Sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360874#M85029</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 23 May 2017 18:40:35 GMT</pubDate>
    <dc:creator>mgarrison</dc:creator>
    <dc:date>2017-05-23T18:40:35Z</dc:date>
    <item>
      <title>Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360585#M84929</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below creates a different data set for each zipcode in my primary&amp;nbsp;data set.&amp;nbsp; However, it overwrites/deletes all of the datasets except for the one created during its last iteration.&amp;nbsp; I would like for SAS to generate a unique data set for each different zipcode and save them all.&amp;nbsp; Any thoughts???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dcl&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; hash hzipcode (ordered:&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'a'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hzipcode.definekey (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'zipcode'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'state'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'city'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'year'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'observedclosings'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'quarter'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'finishedvacant'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'finishedsupply'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'housinginventory'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'housingsupply'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vdlinventory'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vdlsupply'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'underconstruction'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Modelinventory'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'avgclosingprice'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'_n_'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hzipcode.definedata (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'zipcode'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'state'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'city'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'year'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'observedclosings'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'quarter'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;finishedvacant'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'finishedsupply',&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'housing&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;inventoryy',&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'housingsupply'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vdlinventory'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'vdlsupply'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'underconstruction'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Modelinventory'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'avgclosingprice'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hzipcode.definedone();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _n_ = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;until&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (last.zipcode);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SASUSER.Ivntrysort;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; zipcode;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hzipcode.add();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hzipcode.output (dataset: &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'out'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; || put(zipcode, &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;best.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;-L));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Mike&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2017 23:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360585#M84929</guid>
      <dc:creator>mgarrison</dc:creator>
      <dc:date>2017-05-22T23:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360588#M84930</link>
      <description>&lt;P&gt;I'm surprised it would run without aborting due to critical errors. There were two typos in your code. They are corrected in the following:&lt;/P&gt;
&lt;PRE&gt;data _null_;
    dcl hash hzipcode (ordered:'a');
    hzipcode.definekey ('zipcode', 'state', 'city', 'year',
                        'observedclosings','quarter',
                        'finishedvacant','finishedsupply',  
                        'housinginventory','housingsupply','vdlinventory','vdlsupply',
                        'underconstruction','Modelinventory','avgclosingprice','_n_');
     hzipcode.definedata ('zipcode', 'state', 'city', 'year', 'observedclosings',
/*                          'quarter', finishedvacant','finishedsupply',*/
                          'quarter', 'finishedvacant','finishedsupply',
                          'housinginventory','housingsupply','vdlinventory',
/*                          'housinginventoryy','housingsupply','vdlinventory',*/
                          'vdlsupply','underconstruction','Modelinventory',
                          'avgclosingprice');
     hzipcode.definedone();
 
     do _n_ = 1 by 1 until (last.zipcode);
        set sasuser.Ivntrysort;
        by zipcode;
        hzipcode.add();
     end;
     hzipcode.output (dataset: 'out' || put(zipcode, best.-L));
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 00:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360588#M84930</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-23T00:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360598#M84931</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I believe even after your fixes the code wouldn't run because the hash gets defined before any variable definitions.&lt;/P&gt;
&lt;P&gt;The data step would also iterate only once and though only output a table for the very first zipcode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below (untested) code should do what the OP is asking for:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set sasuser.Ivntrysort;
  by zipcode;

  if _n_=1 then
    do;
      length n_obs 8;
      dcl hash hzipcode (ordered:'a');
      hzipcode.definekey ('zipcode','n_obs');
      hzipcode.definedata ('zipcode', 'state', 'city', 'year', 'observedclosings',
        /*                          'quarter', finishedvacant','finishedsupply',*/
        'quarter', 'finishedvacant','finishedsupply',
        'housinginventory','housingsupply','vdlinventory',
        /*                          'housinginventoryy','housingsupply','vdlinventory',*/
        'vdlsupply','underconstruction','Modelinventory',
        'avgclosingprice');
      hzipcode.definedone();
    end;

  n_obs+1;
  _rc=hzipcode.add();

  if last.zipcode then
    do;
      hzipcode.output (dataset: 'out' || put(zipcode, best.-L));
      n_obs=0;
    end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Like usual one is tempted to ask the question:&lt;/P&gt;
&lt;P&gt;Why to&amp;nbsp;split up the data into multiple tables when SAS offers by group processing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 01:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360598#M84931</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-23T01:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360599#M84932</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;: I tested my suggested changes to the code on a file that contained three sets of zip codes. The code created all three files. Here is the code I ran (including a test dataset):&lt;/P&gt;
&lt;PRE&gt;data Ivntrysort;
  input zipcode (state city year observedclosings quarter
         finishedvacant finishedsupply housinginventory housingsupply
         vdlinventory vdlsupply underconstruction Modelinventory
         avgclosingprice) ($);
  cards;
11111 a a a a a a a a a a a a a a
11111 a a a a a a a a a a a a a a
11111 a a a a a a a a a a a a a a
22222 b b b b b b b b b b b b b b
22222 b b b b b b b b b b b b b b
22222 b b b b b b b b b b b b b b
33333 c c c c c c c c c c c c c c
33333 c c c c c c c c c c c c c c
33333 c c c c c c c c c c c c c c
;

data _null_;
    dcl hash hzipcode (ordered:'a');
    hzipcode.definekey ('zipcode', 'state', 'city', 'year',
                        'observedclosings','quarter',
                        'finishedvacant','finishedsupply',  
                        'housinginventory','housingsupply','vdlinventory','vdlsupply',
                        'underconstruction','Modelinventory','avgclosingprice','_n_');
     hzipcode.definedata ('zipcode', 'state', 'city', 'year', 'observedclosings',
/*                          'quarter', finishedvacant','finishedsupply',*/
                          'quarter', 'finishedvacant','finishedsupply',
                          'housinginventory','housingsupply','vdlinventory',
/*                          'housinginventoryy','housingsupply','vdlinventory',*/
                          'vdlsupply','underconstruction','Modelinventory',
                          'avgclosingprice');
     hzipcode.definedone();
 
     do _n_ = 1 by 1 until (last.zipcode);
        set Ivntrysort;
        by zipcode;
        hzipcode.add();
     end;
     hzipcode.output (dataset: 'out' || put(zipcode, best.-L));
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 01:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360599#M84932</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-23T01:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360601#M84933</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Oh, I see! I was actually astonished that you post something that's not working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand now why the DS interates more than once. The syntax "confused" me and I had direct access using the point= option in mind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the hash definition only happens during execution time and though the variables already exist in the pdv even though the SET statement comes after the hash declaration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Learned something which I actually knew already - but things got just "re-wired" in my brain. Thanks for that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 01:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360601#M84933</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-23T01:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360711#M84987</link>
      <description>&lt;P&gt;Patrick,&lt;/P&gt;
&lt;P&gt;You forgot &amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;hzipcode.clear() ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;after output a dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 12:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360711#M84987</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-23T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360725#M84991</link>
      <description>&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the corrections.&amp;nbsp; My program's code did not have the errors or typos.&amp;nbsp; My copy/paste/reformat exercise for the SAS post had the errors.&amp;nbsp; My apologies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 13:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360725#M84991</guid>
      <dc:creator>mgarrison</dc:creator>
      <dc:date>2017-05-23T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360734#M84993</link>
      <description>&lt;P&gt;I'm confused. The code I posted ran correctly. If it doesn't work with your actual data, you'd have to post an example of your actual data for which it doesn't run as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 13:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360734#M84993</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-23T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360760#M85006</link>
      <description>&lt;P&gt;My format (Best.-L) was numeric and I needed character.&amp;nbsp; After that correction, worked perfectly.&amp;nbsp; Thanks for verifying the code was correct (almost).&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 15:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360760#M85006</guid>
      <dc:creator>mgarrison</dc:creator>
      <dc:date>2017-05-23T15:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360762#M85007</link>
      <description>&lt;P&gt;I added it.&amp;nbsp; What would be the consequence if I didn't clear?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360762#M85007</guid>
      <dc:creator>mgarrison</dc:creator>
      <dc:date>2017-05-23T14:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360871#M85027</link>
      <description>&lt;P&gt;The "clear" method empties the hash object.&amp;nbsp; Ordinarilly this would be done to read the hash table for re-use (i.e. for the next5 zip code).&amp;nbsp; However, while memory&amp;nbsp;would be&amp;nbsp;saved by clearing the hash object, it is NOT reused.&amp;nbsp; A separate hash object is still generated and populated for each zip code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is superfluous, and can be fixed by putting the hash object declare statement and associated definekey and definedata methods in an&amp;nbsp;&amp;nbsp; "if _n_=1 then do; " group.&amp;nbsp; Then using the clear method will be neccessary, because the hash object will be re-used.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360871#M85027</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-05-23T18:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Unique Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360874#M85029</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 18:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-Unique-Data-Sets/m-p/360874#M85029</guid>
      <dc:creator>mgarrison</dc:creator>
      <dc:date>2017-05-23T18:40:35Z</dc:date>
    </item>
  </channel>
</rss>

