<?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 Athena Join tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512472#M138046</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I usually mark the second post as spam.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Haven't considered that (yet). Will do a meditation on it.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 08:32:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-11-13T08:32:30Z</dc:date>
    <item>
      <title>SAS athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512443#M138024</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone experienced joining tables from SAS and Athena?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement of joining table one in SAS and another in Athena.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;BR /&gt;connect to ODBC as athn (DSN="AWS-Athena-SAS-xxx-xxx" );&lt;/P&gt;
&lt;P&gt;create TABLE data.join(compress=char) as&lt;BR /&gt;select base.*&lt;BR /&gt;from connection to athn&lt;BR /&gt;(&lt;BR /&gt;Select A.id&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from data.table_in_sas A&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INNER JOIN&amp;nbsp;table_in_s3 B&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ON A.id = B.id&lt;BR /&gt;) base;&lt;BR /&gt;disconnect from athn;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 03:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512443#M138024</guid>
      <dc:creator>skygold16</dc:creator>
      <dc:date>2018-11-13T03:58:32Z</dc:date>
    </item>
    <item>
      <title>SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512442#M138039</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has anyone experienced joining tables from SAS and Athena?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement of joining table one in SAS and another in Athena.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql noprint;&lt;BR /&gt;connect to ODBC as athn (DSN="AWS-Athena-SAS-xxx-xxx" );&lt;/P&gt;
&lt;P&gt;create TABLE data.join(compress=char) as&lt;BR /&gt;select base.*&lt;BR /&gt;from connection to athn&lt;BR /&gt;(&lt;BR /&gt;Select A.id&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from data.table_in_sas A&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;INNER JOIN&amp;nbsp;table_in_s3 B&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ON A.id = B.id&lt;BR /&gt;) base;&lt;BR /&gt;disconnect from athn;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 03:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512442#M138039</guid>
      <dc:creator>skygold16</dc:creator>
      <dc:date>2018-11-13T03:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512448#M138028</link>
      <description>&lt;P&gt;This is not possible with any data base.&lt;/P&gt;
&lt;P&gt;The join must take place where both tables are.&lt;/P&gt;
&lt;P&gt;So either you download the athena table to sas or you upload the sas table to athena.&lt;/P&gt;
&lt;P&gt;The does the former:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname ATH odbc DSN="AWS-Athena-SAS-xxx-xxx" user=xxx etc ;
proc sql ;
  create table SASLIB.TAB3 as
  select *
  from ATH.TAB1, SASLIB.TAB2
  where ID1=ID2;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 04:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512448#M138028</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-13T04:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512467#M138041</link>
      <description>What is this? Why do you ask the same question twice? Do you understand the reply? Did you try?&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512467#M138041</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-13T08:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512468#M138042</link>
      <description>&lt;P&gt;There was a double post which I merged. I forgot to activate the notification, sorry for that.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:27:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512468#M138042</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-13T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512470#M138044</link>
      <description>Ah it makes more sense! :)I usually mark the second post as spam.No worries. Thanks. &lt;BR /&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512470#M138044</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-11-13T08:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512472#M138046</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I usually mark the second post as spam.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Haven't considered that (yet). Will do a meditation on it.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 08:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512472#M138046</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-13T08:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Athena Join tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512514#M138059</link>
      <description>&lt;P&gt;Hope confusion is clear now. That wasn't intentional to ask same question again, but by mistake might have submited the same question twice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;I will try your solution tomorrow and see if it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 11:56:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-athena-Join-tables/m-p/512514#M138059</guid>
      <dc:creator>skygold16</dc:creator>
      <dc:date>2018-11-13T11:56:52Z</dc:date>
    </item>
  </channel>
</rss>

