<?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 SAS to Athena connection - create table in athena in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948374#M371096</link>
    <description>&lt;P&gt;I am connecting to Athena through SAS, connection is working and I am able to fetch the data as well into SAS.&lt;/P&gt;&lt;P&gt;After manipulation in SAS, i need to upload result dataset into AWS where i am getting an error as below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working libname connection :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;libname athtst clear;&lt;BR /&gt;%let schema_core="test_db";&lt;/P&gt;&lt;P&gt;libname athtst jdbc schema=&amp;amp;schema_core&lt;BR /&gt;driverclass="com.simba.athena.jdbc.Driver"&lt;BR /&gt;url=&amp;lt;&amp;gt;;Schema=&amp;lt;&amp;gt;;Workgroup=&amp;lt;&amp;gt;;GlueEndpointOverride=&amp;lt;&amp;gt;;EndpointOverride=&amp;lt;&amp;gt;;AwsCredentialsProviderClass=&amp;lt;&amp;gt;;"&lt;BR /&gt;user=&amp;lt;&amp;gt; password="&amp;amp;pass."&lt;BR /&gt;classpath="/sas/Software/jdbcdrivers/xx_athena_looker.jar" schema=&amp;amp;schema_core.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table athtst.test_out as&lt;BR /&gt;select * from test_in;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error -&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Error attempting to CREATE a DBMS table. ERROR: Execute error: [Simba][AthenaJDBC](100071) An error has been thrown from the&lt;BR /&gt;AWS Athena client. No location was specified for table. An S3 location must be specified [Execution ID not available].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple option providing S3 location in above create table statement however its not working. Looking for some guidance on this.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 12:55:40 GMT</pubDate>
    <dc:creator>PRAVIN_JAIN</dc:creator>
    <dc:date>2024-10-21T12:55:40Z</dc:date>
    <item>
      <title>SAS to Athena connection - create table in athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948374#M371096</link>
      <description>&lt;P&gt;I am connecting to Athena through SAS, connection is working and I am able to fetch the data as well into SAS.&lt;/P&gt;&lt;P&gt;After manipulation in SAS, i need to upload result dataset into AWS where i am getting an error as below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working libname connection :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;libname athtst clear;&lt;BR /&gt;%let schema_core="test_db";&lt;/P&gt;&lt;P&gt;libname athtst jdbc schema=&amp;amp;schema_core&lt;BR /&gt;driverclass="com.simba.athena.jdbc.Driver"&lt;BR /&gt;url=&amp;lt;&amp;gt;;Schema=&amp;lt;&amp;gt;;Workgroup=&amp;lt;&amp;gt;;GlueEndpointOverride=&amp;lt;&amp;gt;;EndpointOverride=&amp;lt;&amp;gt;;AwsCredentialsProviderClass=&amp;lt;&amp;gt;;"&lt;BR /&gt;user=&amp;lt;&amp;gt; password="&amp;amp;pass."&lt;BR /&gt;classpath="/sas/Software/jdbcdrivers/xx_athena_looker.jar" schema=&amp;amp;schema_core.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table athtst.test_out as&lt;BR /&gt;select * from test_in;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error -&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Error attempting to CREATE a DBMS table. ERROR: Execute error: [Simba][AthenaJDBC](100071) An error has been thrown from the&lt;BR /&gt;AWS Athena client. No location was specified for table. An S3 location must be specified [Execution ID not available].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried multiple option providing S3 location in above create table statement however its not working. Looking for some guidance on this.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 12:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948374#M371096</guid>
      <dc:creator>PRAVIN_JAIN</dc:creator>
      <dc:date>2024-10-21T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to Athena connection - create table in athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948400#M371099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are an odd number of quotes (9) in the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname athtst clear;
%let schema_core="test_db";

libname athtst jdbc schema=&amp;amp;schema_core
driverclass="com.simba.athena.jdbc.Driver"
url=&amp;lt;&amp;gt;;Schema=&amp;lt;&amp;gt;;Workgroup=&amp;lt;&amp;gt;;GlueEndpointOverride=&amp;lt;&amp;gt;;EndpointOverride=&amp;lt;&amp;gt;;AwsCredentialsProviderClass=&amp;lt;&amp;gt;;"
user=&amp;lt;&amp;gt; password="&amp;amp;pass."
classpath="/sas/Software/jdbcdrivers/xx_athena_looker.jar" schema=&amp;amp;schema_core.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the log show any messages regarding this?&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;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 15:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948400#M371099</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2024-10-21T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to Athena connection - create table in athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948508#M371121</link>
      <description>&lt;P&gt;Thanks for response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given libname statement is just a sample, I have removed some info from actual statement hence it may have unbalanced quotes. Libname statement is running fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below code works fine if I use source as athena table as source however I get error if I use SAS work table as source.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Success -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table athtst.test_out as&lt;BR /&gt;select * from &lt;STRONG&gt;athtst&lt;/STRONG&gt;.test_in;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table athtst.test_out as&lt;BR /&gt;select * from &lt;STRONG&gt;test_in&lt;/STRONG&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirement is to upload SAS dataset into Athena.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 06:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948508#M371121</guid>
      <dc:creator>PRAVIN_JAIN</dc:creator>
      <dc:date>2024-10-22T06:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to Athena connection - create table in athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948545#M371128</link>
      <description>&lt;P&gt;What happens if you run below code?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix msglevel=i;
proc append base=athtst.test_out data=work.test_in nowarn force;
run;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this doesn't work please share the SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 12:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-to-Athena-connection-create-table-in-athena/m-p/948545#M371128</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-10-22T12:07:05Z</dc:date>
    </item>
  </channel>
</rss>

