<?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 table to Data step or proc SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593191#M170198</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75014"&gt;@sasuser1031&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;What do you mean by "&lt;SPAN&gt;convert this code to Data Step" if it's already a DATA step?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as conversion to SQL goes, what's the purpose of the program? The only thing it currently does is load two data sets into two hash tables at _N_=1 and read the data from AB without processing the data in any way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Paul D.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 19:23:38 GMT</pubDate>
    <dc:creator>hashman</dc:creator>
    <dc:date>2019-10-01T19:23:38Z</dc:date>
    <item>
      <title>Hash table to Data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/592785#M170000</link>
      <description>&lt;P&gt;Can somebody help me to convert this code to Data Step or Proc SQL?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data cd;&lt;BR /&gt;set ab (rename=(x_ID=ID x_num=num x_year=year));&lt;BR /&gt;history_path = 0;&lt;BR /&gt;if _n_ = 1 then do;&lt;BR /&gt;length x_ID $9 x_num $3 x_year $4;&lt;BR /&gt;declare hash vertices(dataset: 'work.ab');&lt;BR /&gt;rc = vertices.definekey('x_ID', 'x_num', 'x_year');&lt;BR /&gt;rc = vertices.definedata('history');&lt;BR /&gt;rc = vertices.definedone();&lt;BR /&gt;call missing(x_ID, x_num, x_year, history);&lt;/P&gt;&lt;P&gt;length last_ID $9 last_num $3;&lt;BR /&gt;declare hash edges(dataset: 'work.ac', multidata: 'yes');&lt;BR /&gt;rc = edges.definekey('x_ID', 'x_num', 'x_year');&lt;BR /&gt;rc = edges.definedata('last_ID', 'last_num');&lt;BR /&gt;rc = edges.definedone();&lt;BR /&gt;call missing(last_ID, last_num);&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;</description>
      <pubDate>Tue, 01 Oct 2019 13:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/592785#M170000</guid>
      <dc:creator>sasuser1031</dc:creator>
      <dc:date>2019-10-01T13:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hash table to Data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/592829#M170025</link>
      <description>&lt;P&gt;Was this program working and now it isn't? If so have you tried increasing SAS's MEMSIZE option to provide more memory?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 21:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/592829#M170025</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-30T21:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hash table to Data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593004#M170114</link>
      <description>How to increase MEMSIZE?</description>
      <pubDate>Tue, 01 Oct 2019 12:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593004#M170114</guid>
      <dc:creator>sasuser1031</dc:creator>
      <dc:date>2019-10-01T12:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hash table to Data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593141#M170172</link>
      <description>&lt;P&gt;That data step does not appear to be using the HASH objects at all.&amp;nbsp; Why not just remove that part of the code?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cd;
set ab (rename=(x_ID=ID x_num=num x_year=year));
history_path = 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Oct 2019 17:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593141#M170172</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-01T17:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hash table to Data step or proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593191#M170198</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75014"&gt;@sasuser1031&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;What do you mean by "&lt;SPAN&gt;convert this code to Data Step" if it's already a DATA step?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as conversion to SQL goes, what's the purpose of the program? The only thing it currently does is load two data sets into two hash tables at _N_=1 and read the data from AB without processing the data in any way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Paul D.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 19:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hash-table-to-Data-step-or-proc-SQL/m-p/593191#M170198</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2019-10-01T19:23:38Z</dc:date>
    </item>
  </channel>
</rss>

