<?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/Access to ODBC and AWS Athena in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550071#M152707</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;IMO moving to the cloud definitely has some advantages, but troubleshooting isn't one of them!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Haha, isn't that the truth!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But thanks for the tip on opening a ticket with tech support, I'll be sure to do that.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 21:47:48 GMT</pubDate>
    <dc:creator>AdamT</dc:creator>
    <dc:date>2019-04-10T21:47:48Z</dc:date>
    <item>
      <title>SAS/Access to ODBC and AWS Athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550040#M152694</link>
      <description>&lt;P&gt;Has anyone had any good luck in pulling data from Athena back to SAS? Any tricks to optimizing the connection string or library options to speed it up?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried using the same Simba ODBC driver with SAS and a few other products, but the same query that'll take a few minutes with an R ODBC connection will take a few hours to pull to SAS.&amp;nbsp; Even with a SAS instance hosted in an AWS environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the connection string I've been using so far. It works to pull data, but slowly compared to using the same query and connection string in other tools:&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;%LET ap_connstr = %STR(%')
        Driver=Simba Athena ODBC Driver;
        AwsRegion=&amp;amp;ap_region;
        S3OutputLocation=&amp;amp;ap_s3path;
        AuthenticationType=IAM Credentials;
        AwsProfile=&amp;amp;ap_profile;
        UseResultsetStreaming=0;
        RowsToFetchPerBlock=1000;
        StringColumnLength=32;
        schema=&amp;amp;ap_schema;
        UID=&amp;amp;ap_user;
        PWD=&amp;amp;ap_pass;
     %STR(%');

LIBNAME ap ODBC COMPLETE=%UNQUOTE(&amp;amp;ap_connstr) SCHEMA=&amp;amp;ap_schema SQL_FUNCTIONS=all;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 19:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550040#M152694</guid>
      <dc:creator>AdamT</dc:creator>
      <dc:date>2019-04-10T19:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to ODBC and AWS Athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550057#M152699</link>
      <description>&lt;P&gt;A problem like this is likely going to require some diagnostics so I'd suggest opening a Tech Support track if you haven't done so already.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMO moving to the cloud definitely has some advantages, but troubleshooting isn't one of them!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 20:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550057#M152699</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-10T20:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to ODBC and AWS Athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550071#M152707</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;IMO moving to the cloud definitely has some advantages, but troubleshooting isn't one of them!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Haha, isn't that the truth!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But thanks for the tip on opening a ticket with tech support, I'll be sure to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 21:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/550071#M152707</guid>
      <dc:creator>AdamT</dc:creator>
      <dc:date>2019-04-10T21:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Access to ODBC and AWS Athena</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/594082#M170618</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19596"&gt;@AdamT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure you add the INSERTBUFF= and READBUFF= options to your LIBNAME statement. Finding the "best" - if there is such a thing - setting takes experimentation. I would begin by setting each option to 10000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 12:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Access-to-ODBC-and-AWS-Athena/m-p/594082#M170618</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2019-10-04T12:40:57Z</dc:date>
    </item>
  </channel>
</rss>

