<?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 Joining with Large number of Variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484460#M71829</link>
    <description>&lt;P&gt;Here's another version of setting the PDV host variable equivalent. I call it PD's style :). Love it when he toils with SAS coding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (drop=rc);
declare hash hh_pat(dataset:"sashelp.class");
rc=hh_pat.defineKey("name");
rc=hh_pat.defineData(ALL:'Yes');
rc=hh_pat.defineDone();
do until(eof);
set w end=eof;
rc=hh_pat.find();
if rc=0 then output;
end;
stop;
set sashelp.class;/*notice here*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I remember PD's style as PDV=&lt;STRIKE&gt;Program data&lt;/STRIKE&gt; vector&amp;nbsp; corrected as Paul dorfman's Vector aka PDV host vars&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommended reading the book title and notes are below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Community-Matters/Book-Data-Management-Solutions-Using-SAS-Hash-Table-Operations-A/td-p/433642" target="_blank"&gt;https://communities.sas.com/t5/Community-Matters/Book-Data-Management-Solutions-Using-SAS-Hash-Table-Operations-A/td-p/433642&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Aug 2018 17:37:15 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2018-08-06T17:37:15Z</dc:date>
    <item>
      <title>Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484451#M71826</link>
      <description>&lt;P&gt;I am running into a problem with big data inner joining.&amp;nbsp; I created a hash object but not sure how to use all variables without typing all 200 variable names into the definedata() and call missing(). Should I be using the call missing()? please take a look at my code and give any suggestions....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data ltdmerg (drop=rc);&lt;BR /&gt;if 0 then set bigdata.file;&lt;BR /&gt;declare hash hh_pat(dataset:"bigdata.file");&lt;BR /&gt;rc=hh_pat.defineKey("id_cd");&lt;BR /&gt;rc=hh_pat.defineData(ALL:'Yes');&lt;BR /&gt;rc=hh_pat.defineDone();&lt;BR /&gt;do until(eof);&lt;BR /&gt;set work.data end=eof;&lt;BR /&gt;call missing (?????);&lt;BR /&gt;rc=hh_pat.find();&lt;BR /&gt;if rc=0 then output;&lt;BR /&gt;end;&lt;BR /&gt;stop;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484451#M71826</guid>
      <dc:creator>DrBigAl</dc:creator>
      <dc:date>2018-08-06T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484456#M71827</link>
      <description>&lt;P&gt;When loading a dataset into a hash table, you don't need call missing for the reason&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if 0 then set&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;bigdata.file;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;will set the PDV host variable equivalent of hash variable names .So if i could grasp what I have read and comprehended so far on reading the almighty's incarnation PD's book, I think I am right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484456#M71827</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-06T17:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484458#M71828</link>
      <description>&lt;P&gt;an illustration:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data w;
set sashelp.class;
keep name;
run;
data want (drop=rc);
if 0 then set sashelp.class;
declare hash hh_pat(dataset:"sashelp.class");
rc=hh_pat.defineKey("name");
rc=hh_pat.defineData(ALL:'Yes');
rc=hh_pat.defineDone();
do until(eof);
set w end=eof;
rc=hh_pat.find();
if rc=0 then output;
end;
stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484458#M71828</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-06T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484460#M71829</link>
      <description>&lt;P&gt;Here's another version of setting the PDV host variable equivalent. I call it PD's style :). Love it when he toils with SAS coding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (drop=rc);
declare hash hh_pat(dataset:"sashelp.class");
rc=hh_pat.defineKey("name");
rc=hh_pat.defineData(ALL:'Yes');
rc=hh_pat.defineDone();
do until(eof);
set w end=eof;
rc=hh_pat.find();
if rc=0 then output;
end;
stop;
set sashelp.class;/*notice here*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I remember PD's style as PDV=&lt;STRIKE&gt;Program data&lt;/STRIKE&gt; vector&amp;nbsp; corrected as Paul dorfman's Vector aka PDV host vars&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommended reading the book title and notes are below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Community-Matters/Book-Data-Management-Solutions-Using-SAS-Hash-Table-Operations-A/td-p/433642" target="_blank"&gt;https://communities.sas.com/t5/Community-Matters/Book-Data-Management-Solutions-Using-SAS-Hash-Table-Operations-A/td-p/433642&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 17:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484460#M71829</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-08-06T17:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484504#M71831</link>
      <description>&lt;P&gt;Thanks! Took missing out and works great!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484504#M71831</guid>
      <dc:creator>DrBigAl</dc:creator>
      <dc:date>2018-08-06T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hash Tables Joining with Large number of Variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484583#M71843</link>
      <description>&lt;P&gt;If you had a left join, this could be used to avoid listing all the variables:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data W;
  set SASHELP.CLASS(keep=NAME) ;
  output;
  if _N_=1 then do; NAME='x'; output; end;
run;
data want (drop=rc);
  if _N_=1 then do;
    if 0 then set SASHELP.CLASS;
    declare hash hh_pat(dataset:"SASHELP.CLASS");
    rc=hh_pat.defineKey("NAME");
    rc=hh_pat.defineData(ALL:'Yes');
    rc=hh_pat.defineDone();
  end;
  set W;
  call missing(of SEX -- WEIGHT);
  rc=hh_pat.find();
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 01:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hash-Tables-Joining-with-Large-number-of-Variables/m-p/484583#M71843</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-07T01:31:45Z</dc:date>
    </item>
  </channel>
</rss>

