<?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: CLI ERROR - SAS/ACCESS to Amazon Redshift in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/307959#M61145</link>
    <description>&lt;P&gt;Solution was installing a missing DLL file, which is usually included with SAS/SECURE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Editor's note: including a few more debugging tips from SAS support. &amp;nbsp;This led to the discovery of the missing DLL.&lt;/EM&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;This typically indicates that SSL is not configured for use outside of SAS. Please note SSL needs to be configured for use outside of SAS per Amazons directions for an ODBC connection. Amazon documentation for this can be seen here: &lt;A class="cs13BC40F8" href="http://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html" target="_blank"&gt;&lt;SPAN class="cs896CB680"&gt;http://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;Additionally you could try setting the EncryptionMethod to 6. This uses SSL if it is available per the drivers documentation found here: &lt;A class="cs13BC40F8" href="https://documentation.progress.com/output/DataDirect/odbcredshifthelp/index.html#page/odbcredshifthelp/encryption-method.html#wwconnect_header" target="_blank"&gt;&lt;SPAN class="cs896CB680"&gt;https://documentation.progress.com/output/DataDirect/odbcredshifthelp/index.html#page/odbcredshifthelp/encryption-method.html#wwconnect_header&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 17:41:08 GMT</pubDate>
    <dc:creator>Jlochoa</dc:creator>
    <dc:date>2016-10-28T17:41:08Z</dc:date>
    <item>
      <title>CLI ERROR - SAS/ACCESS to Amazon Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305384#M60918</link>
      <description>&lt;P&gt;Dear SAS Community Friends,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recently installed the&amp;nbsp;SAS/ACCESS to Amazon Redshift driver engine and I'm unsuccessful connecting to the AWS Redshift DB. Below is the code and log snippet (with altered sensitive info).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was hoping I can get some guidance what the error means and troubleshotting tips.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME redshift sasiorst SERVER="myserver.na-west-1.redshift.amazonaws.com"
DB=prod_data USER=lab_readonly PWD="XXXXXXXXXXXX"; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: CLI error trying to establish connection: [SAS][ODBC Redshift Wire Protocol driver]Socket closed. : [SAS][ODBC Redshift Wire Protocol
driver]Socket closed. : [SAS][ODBC Redshift Wire Protocol driver][Redshift]FATAL: no pg_hba.conf entry for host "xx.xx.x.xxx", user
"lab_readonly", database "prod_data", SSL off(File /home/rdsdb/padb/src/pg/src/backend/libpq/auth.c; Line 454; Routine
ClientAuthentication; )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/5355iEAC7541A78A24499/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="RedShift.jpg" title="RedShift.jpg" /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Current version: 9.04.01M3P062415
Operating System:   WX64_WKS.
Product expiration dates:
---Base SAS Software                                                                                    14JAN2017
---SAS/STAT                                                                                             14JAN2017
---SAS/GRAPH                                                                                            14JAN2017
---SAS/ETS                                                                                              14JAN2017
---SAS/OR                                                                                               14JAN2017
---SAS/IML                                                                                              14JAN2017
---SAS/QC                                                                                               14JAN2017
---SAS/Secure 168-bit                                                                                   14JAN2017
---SAS/Secure Windows                                                                                   14JAN2017
---SAS Enterprise Guide                                                                                 14JAN2017
---OR OPT                                                                                               14JAN2017
---OR PRS                                                                                               14JAN2017
---OR IVS                                                                                               14JAN2017
---OR LSO                                                                                               14JAN2017
---SAS/ACCESS Interface to Oracle                                                                       14JAN2017
---SAS/ACCESS Interface to PC Files                                                                     14JAN2017
---SAS/ACCESS Interface to OLE DB                                                                       14JAN2017
---SAS/IML Studio                                                                                       14JAN2017
---SAS Workspace Server for Local Access                                                                14JAN2017
---SAS/ACCESS Reserved Slot 568                                                                         30SEP2016
---High Performance Suite                                                                               14JAN2017
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305384#M60918</guid>
      <dc:creator>Jlochoa</dc:creator>
      <dc:date>2016-10-18T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR - SAS/ACCESS to Amazon Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305389#M60919</link>
      <description>&lt;P&gt;To me it looks like the problem occurs within the redshift odbc driver. Try to determine what should be in the pg_hba.conf file.&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 14:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305389#M60919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-18T14:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR - SAS/ACCESS to Amazon Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305409#M60921</link>
      <description>Trouble shooting step no 1 for all SAS/ACCESS connection problems: make sure you have a working connection from another client.</description>
      <pubDate>Tue, 18 Oct 2016 15:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/305409#M60921</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-18T15:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR - SAS/ACCESS to Amazon Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/307959#M61145</link>
      <description>&lt;P&gt;Solution was installing a missing DLL file, which is usually included with SAS/SECURE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Editor's note: including a few more debugging tips from SAS support. &amp;nbsp;This led to the discovery of the missing DLL.&lt;/EM&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;This typically indicates that SSL is not configured for use outside of SAS. Please note SSL needs to be configured for use outside of SAS per Amazons directions for an ODBC connection. Amazon documentation for this can be seen here: &lt;A class="cs13BC40F8" href="http://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html" target="_blank"&gt;&lt;SPAN class="cs896CB680"&gt;http://docs.aws.amazon.com/redshift/latest/mgmt/connecting-ssl-support.html&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs8A70F0C8"&gt;Additionally you could try setting the EncryptionMethod to 6. This uses SSL if it is available per the drivers documentation found here: &lt;A class="cs13BC40F8" href="https://documentation.progress.com/output/DataDirect/odbcredshifthelp/index.html#page/odbcredshifthelp/encryption-method.html#wwconnect_header" target="_blank"&gt;&lt;SPAN class="cs896CB680"&gt;https://documentation.progress.com/output/DataDirect/odbcredshifthelp/index.html#page/odbcredshifthelp/encryption-method.html#wwconnect_header&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P class="cs95E872D0"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/307959#M61145</guid>
      <dc:creator>Jlochoa</dc:creator>
      <dc:date>2016-10-28T17:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: CLI ERROR - SAS/ACCESS to Amazon Redshift</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/393282#M66327</link>
      <description>&lt;P&gt;I was facing the same issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be precise the below parameter needs to be added in the LIBNAME statement to resolve the issue&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs784e36801"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;CONOPTS=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="csec41c42c1"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;"EncryptionMethod=6;ValidateServerCertificate=0"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="cs95e872d0"&gt;&lt;SPAN class="csec41c42c1"&gt;Hope this helps in avoiding to raise a SAS track &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 16:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/CLI-ERROR-SAS-ACCESS-to-Amazon-Redshift/m-p/393282#M66327</guid>
      <dc:creator>ankitd</dc:creator>
      <dc:date>2017-09-05T16:08:52Z</dc:date>
    </item>
  </channel>
</rss>

