<?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 Date Query Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682710#M206674</link>
    <description>&lt;P&gt;Thank you both for the quick response.&lt;/P&gt;&lt;P&gt;I'll give them a try and confirm my findings.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 16:55:33 GMT</pubDate>
    <dc:creator>JayS</dc:creator>
    <dc:date>2020-09-09T16:55:33Z</dc:date>
    <item>
      <title>SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682664#M206650</link>
      <description>&lt;P&gt;I'm fairly New to querying HADOOP data from SAS.&lt;BR /&gt;The below code returns 0 Obs, and I know there is a InsertDate of '01Aug2020'&lt;/P&gt;&lt;P&gt;Reading up, but have not found the solution as of yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using this driver... CLASS="com.cloudera.hive.jdbc.HS2Driver"&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to change the data type in order for HADOOP to resolve the string value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TIA, Jay&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;*******************************************************************************&lt;/P&gt;&lt;P&gt;*** All the Connect To Hadoop Schema Table info works, I connect ***&lt;/P&gt;&lt;P&gt;*******************************************************************************&lt;/P&gt;&lt;P&gt;CREATE TABLE NewTable AS&lt;BR /&gt;SELECT *&lt;BR /&gt;FROM CONNECTION TO hadoop&lt;BR /&gt;/* file stored in HADOOP */&lt;BR /&gt;/*****************************/&lt;BR /&gt;( select * from HADOOPData&lt;BR /&gt;Where InsertDate = '01Aug2020' );&lt;BR /&gt;disconnect from hadoop;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 15:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682664#M206650</guid>
      <dc:creator>JayS</dc:creator>
      <dc:date>2020-09-09T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682699#M206669</link>
      <description>&lt;P&gt;Try using '01Aug2020'&lt;STRONG&gt;d&lt;/STRONG&gt; . The d immediately after the value in quotes tells SAS to treat it as a DATE literal, otherwise it would be a character value.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682699#M206669</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-09T16:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682705#M206672</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38546"&gt;@JayS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're using explicit pass through SQL.&amp;nbsp; Whenever there are phrases like "&lt;SPAN&gt;FROM CONNECTION TO hadoop&lt;/SPAN&gt;" or "&lt;SPAN&gt;disconnect from hadoop", explicit pass through SQL is being used.&amp;nbsp; Pardon me if you already know this but just in case:&amp;nbsp; When explicit pass through is used, you're basically telling SAS, just hand this over to the database&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;as is.&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;In other words, SAS will perform no "translation" from SAS SQL to the SQL (or in this case HQL) of the database.&amp;nbsp; Therefore all statements must be coded using the syntax of the database not SAS syntax.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In your case, you need to code the date in the format that Hadoop uses, i.e. '2020-08-01'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682705#M206672</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-09T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682710#M206674</link>
      <description>&lt;P&gt;Thank you both for the quick response.&lt;/P&gt;&lt;P&gt;I'll give them a try and confirm my findings.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 16:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/682710#M206674</guid>
      <dc:creator>JayS</dc:creator>
      <dc:date>2020-09-09T16:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/683234#M206926</link>
      <description>Perfect, thanks Jim....</description>
      <pubDate>Fri, 11 Sep 2020 12:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/683234#M206926</guid>
      <dc:creator>JayS</dc:creator>
      <dc:date>2020-09-11T12:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS HADOOP Date Query Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/683238#M206928</link>
      <description>&lt;P&gt;You're welcome; glad to help out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 13:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-HADOOP-Date-Query-Question/m-p/683238#M206928</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-11T13:27:51Z</dc:date>
    </item>
  </channel>
</rss>

