<?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: sas-hadoop query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/393719#M277741</link>
    <description>&lt;P&gt;thank you LinusH.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 21:32:24 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2017-09-06T21:32:24Z</dc:date>
    <item>
      <title>sas-hadoop query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392219#M277737</link>
      <description>&lt;P&gt;i have sas 9.4 linux with clouderaimpala drivers installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am trying to list all tables (table name) from one of haddop database but not sure about how query exactly look like, can someone please help...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below query is not much help,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname&amp;nbsp;try "/home/userid";&lt;BR /&gt;proc sql;&lt;BR /&gt;connect to impala as xyzk&amp;nbsp;(datasrc=xxx user=xxx pw=xxx database=xxx);&lt;BR /&gt;execute (create table 'try.test' (show tables;))&amp;nbsp; by xyzk;&lt;BR /&gt;quit;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392219#M277737</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-08-31T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: sas-hadoop query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392228#M277738</link>
      <description>&lt;P&gt;Anything that is set inside an EXECUTE block will be target DBMS dependent. So you should go to an Impala forum for such details.&lt;/P&gt;
&lt;P&gt;Further more, using EXECUTE will not return anything to the client SAS session, so I assume a SELECT * FROM CONNECTION TO... construct fits your need better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to issue a libname instead, and then you can use SAS to list the&amp;nbsp;available tables.&lt;/P&gt;
&lt;P&gt;Search&amp;nbsp;support.sas.com for "PROC SQL DICTIONARY TABLES", or query the generic SASHELP.VTABLE system view.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 14:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392228#M277738</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-31T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: sas-hadoop query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392252#M277739</link>
      <description>&lt;P&gt;Thank you LinusH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;little confuse if i still need to use 2 libname statement - 1 to reference to get output in my home dir and 2nd which reference connection like this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname&amp;nbsp;xyz '/home/userid';&lt;BR /&gt;libname hdp impala datasrc=xxxk user=xxx pw=xxx database=xyk-db;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table xyz.test as select * from DICTIONARY.TABLES;&lt;BR /&gt;quit;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 15:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392252#M277739</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-08-31T15:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: sas-hadoop query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392264#M277740</link>
      <description>It's up to you where you want to store the result. What is your next step?&lt;BR /&gt;You could store it in work if you it's intermediate use and you avoid assigning another library.</description>
      <pubDate>Thu, 31 Aug 2017 15:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/392264#M277740</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-31T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: sas-hadoop query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/393719#M277741</link>
      <description>&lt;P&gt;thank you LinusH.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 21:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-hadoop-query/m-p/393719#M277741</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2017-09-06T21:32:24Z</dc:date>
    </item>
  </channel>
</rss>

