<?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: How to tune SAS connection to Redshift via ODBC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441983#M110556</link>
    <description>&lt;P&gt;Not sure if this is relevant in your case but have you tried the DBCOMMIT option? Setting DBCOMMIT = 0 is supposed to ensure there is only 1 database commit done for your all of your table inserts.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Mar 2018 00:38:36 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-03-03T00:38:36Z</dc:date>
    <item>
      <title>How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441621#M110500</link>
      <description>&lt;P&gt;Does anyone have a good list of options to change to improve performance of uploading data to Redshift when connection is made using SAS/Access to ODBC.&amp;nbsp; That is on a system that does not have a license for SAS/Access to Redshift.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried uploading a small dataset and it took 34 minutes!!&lt;/P&gt;
&lt;PRE&gt;644  +data RWATEAM.__0001 ;
645  +  set fi.DEMOGRAPHICS (obs=&amp;amp;obs);
646  +run;

NOTE: SAS variable labels, formats, and lengths are not written to DBMS tables.
NOTE: There were 15117 observations read from the data set FI.DEMOGRAPHICS.
NOTE: The data set RWATEAM.__0001 has 15117 observations and 9 variables.
NOTE: DATA statement used (Total process time):
      real time           34:26.78
      cpu time            3.28 seconds&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441621#M110500</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-02T16:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441688#M110524</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Method:1&lt;/P&gt;&lt;P&gt;Which ODBC driver are you using? If your using ODBC Driver from DataDirect for amazon Redshift then you can Bulk load.&lt;/P&gt;&lt;P&gt;Use PROC APPEND with INSERTBUFFER dataset option. A larger buffer size can increase I/O performance over a small size when you write data to Redshift from DataDirect Driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Method:2&lt;/P&gt;&lt;P&gt;Export the data into CSV file using PROC EXPORT and save the file in Local Disk and next upload the file into your buckets in Amazon S3 (Using Amazon S3 Console). Now run a pass-through in SAS (or any other SQL client) for copy command to load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
connect to odbc as mycon (datasrc='RH_Connect'
 user=xxxx
pwd=xxxxx);
execute (copy test from 's3://mybucket/test.csv'
 credentials 'aws_access_key_id=xxxx;
 aws_secret_access_key=xxxxxx';)
 by mycon;
disconnect from mycon;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441688#M110524</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-02T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441717#M110537</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;I wonder if anyone has tried using SAS to push files to S3 buckets?&lt;/P&gt;
&lt;P&gt;Are there command line Unix commands you could call using the PIPE engine?&lt;/P&gt;
&lt;P&gt;Are there SAS fileref engines that would allow you to write the CSV file directly to the S3 bucket?&lt;/P&gt;
&lt;P&gt;Are there Unix drivers to allow the S3 bucket to be mounted as folder in the Unix file system?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 20:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441717#M110537</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-02T20:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441983#M110556</link>
      <description>&lt;P&gt;Not sure if this is relevant in your case but have you tried the DBCOMMIT option? Setting DBCOMMIT = 0 is supposed to ensure there is only 1 database commit done for your all of your table inserts.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 00:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/441983#M110556</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-03-03T00:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/442038#M110574</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Try add some options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options dbidirectexec bufno=100 bufsize=128k ;
LIBNAME SQL ODBC DATAsrc=proddb SCHEMA=sas USER=user PASSWORD="*******" INSERT_SQL=YES 
INSERTBUFF=32767
readbuff=10000
bulkload=yes
dbcommit=10000
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Mar 2018 10:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/442038#M110574</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-03-03T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to tune SAS connection to Redshift via ODBC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/475280#M122203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have used aws cli interface, which I downloaded from AWS.&lt;/P&gt;&lt;P&gt;once it's configured on the machine which houses SAS you can use a similar statement like the below:&lt;/P&gt;&lt;P&gt;x "aws s3 cp&amp;nbsp; d:/filename s3://my-bucket/filename";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have to have your X command ability turned on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 17:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-tune-SAS-connection-to-Redshift-via-ODBC/m-p/475280#M122203</guid>
      <dc:creator>smartiVP</dc:creator>
      <dc:date>2018-07-03T17:58:07Z</dc:date>
    </item>
  </channel>
</rss>

