<?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: Using SAS query in Impala in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447372#M112370</link>
    <description>Your code is written as you are working with data in SASWORK, but perhaps that's a simplification...?&lt;BR /&gt;Also, forgive me my ignorance in hash table syntax, but are you keeping records that doesn't have match?&lt;BR /&gt;If so, and 'have is already in Impala: make sure that your lookup table is there as well. Then use the SQL syntax WHERE id NOT IN (select id from keyvariable)</description>
    <pubDate>Wed, 21 Mar 2018 11:01:33 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-03-21T11:01:33Z</dc:date>
    <item>
      <title>Using SAS query in Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447310#M112336</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to replicate the attached SAS query in Impala. Basically, I want to pull all the observations from a dataset having a key variable "ID". Is there a way to replicate the same query using proc sql or may be in Impala.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  if _n_=1 then do;
    declare hash m(dataset:"keyvariable");
    m.definekey('ID');
    m.definedone();
  end;
  set have; 
  if m.find()=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 03:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447310#M112336</guid>
      <dc:creator>Tomcaty</dc:creator>
      <dc:date>2018-03-21T03:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS query in Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447319#M112344</link>
      <description>&lt;P&gt;How many values in the table keyvariable?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 04:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447319#M112344</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-21T04:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS query in Impala</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447372#M112370</link>
      <description>Your code is written as you are working with data in SASWORK, but perhaps that's a simplification...?&lt;BR /&gt;Also, forgive me my ignorance in hash table syntax, but are you keeping records that doesn't have match?&lt;BR /&gt;If so, and 'have is already in Impala: make sure that your lookup table is there as well. Then use the SQL syntax WHERE id NOT IN (select id from keyvariable)</description>
      <pubDate>Wed, 21 Mar 2018 11:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-SAS-query-in-Impala/m-p/447372#M112370</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-21T11:01:33Z</dc:date>
    </item>
  </channel>
</rss>

