<?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: Proper syntax to access a Redshift server in libname statement? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936287#M368049</link>
    <description>&lt;P&gt;Has your SAS installation ever been successfully used with Redshift before or is this the first time such a database connection has been tried? Does your SAS run on a PC or a server? If it is on a PC, for example, then you should check to see if you have a Redshift ODBC driver installed via the Windows ODBC Administrator tool.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 20:59:59 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2024-07-18T20:59:59Z</dc:date>
    <item>
      <title>Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936189#M368017</link>
      <description>&lt;P&gt;The data management people in my company (who are not SAS users) have sent me information to connect to one of our Redshift servers:&lt;/P&gt;
&lt;DIV&gt;User ID: user&lt;/DIV&gt;
&lt;DIV&gt;Password: pwd&lt;/DIV&gt;
&lt;DIV&gt;Database Server: svr123&lt;/DIV&gt;
&lt;DIV&gt;Database Port: 1234&lt;/DIV&gt;
&lt;DIV&gt;Database: db123&lt;/DIV&gt;
&lt;DIV&gt;Schema: data_schema_123&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;My libname statement is as follows:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname newlib redshift 
user="user" 
password="pwd"&amp;nbsp;
READBUFF=10000 SUB_CHAR=QUESTIONMARK&amp;nbsp;
schema="data_schema_123"
database="db123"
server="svr123"
port=1234;&lt;/CODE&gt;&lt;/PRE&gt;
I'm seeing the following error message after executing:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ERROR: CLI error trying to establish connection: [DataDirect][ODBC lib] Data source name not found and no default driver specified
 ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;
Is there anything obviously wrong with my syntax or is this more of an IT issue?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jul 2024 14:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936189#M368017</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2024-07-18T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936285#M368047</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/403504"&gt;@IlBoon&lt;/a&gt;&amp;nbsp;... can you help?&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 20:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936285#M368047</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-07-18T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936287#M368049</link>
      <description>&lt;P&gt;Has your SAS installation ever been successfully used with Redshift before or is this the first time such a database connection has been tried? Does your SAS run on a PC or a server? If it is on a PC, for example, then you should check to see if you have a Redshift ODBC driver installed via the Windows ODBC Administrator tool.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 20:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936287#M368049</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-07-18T20:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936290#M368050</link>
      <description>&lt;P&gt;My company is running SAS Studio in a web browser on a remote desktop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure about the&amp;nbsp;&lt;SPAN&gt;Redshift ODBC driver - I'll check or ask the IT folks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've never had trouble connecting before with SAS, but this is the first time I've accessed data via AWS Redshift.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 21:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936290#M368050</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2024-07-18T21:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936291#M368051</link>
      <description>Update:&lt;BR /&gt;I do see Amazon Redshift ODBC Driver folders (32 and 64-bit) in  Windows&amp;gt;Start Menu&amp;gt;Programs.</description>
      <pubDate>Thu, 18 Jul 2024 21:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936291#M368051</guid>
      <dc:creator>RobertWF1</dc:creator>
      <dc:date>2024-07-18T21:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936292#M368052</link>
      <description>&lt;P&gt;SAS Studio typically uses a remote SAS server. You can find out what that is by running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSHOSTNAME;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To access Redshift the 64-bit Redshift ODBC driver would need to be installed on the remote SAS server. Typically this is a job for your SAS administrator. If you have one I suggest you check with them. I suspect your LIBNAME is missing a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1imo2k26vbn6kn1luk0qjutgnma.htm" target="_blank" rel="noopener"&gt;DSN setting&lt;/A&gt; which identifies both the ODBC driver being used and the Redshift server to connect to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Try this&amp;nbsp; DSN = "svr123"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 22:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936292#M368052</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2024-07-18T22:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax to access a Redshift server in libname statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936308#M368058</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Why would one use &lt;EM&gt;SAS/ACCESS Interface to Amazon Redshift&lt;/EM&gt; if it relies on ODBC? Why not use &lt;EM&gt;SAS/ACCESS Interface to ODBC&lt;/EM&gt;?&lt;/P&gt;
&lt;P&gt;Amazon provides&amp;nbsp; ODBC drivers for &lt;A href="https://docs.aws.amazon.com/redshift/latest/mgmt/odbc20-install-config-linux.html" target="_self"&gt;linux&lt;/A&gt; and &lt;A href="https://docs.aws.amazon.com/redshift/latest/mgmt/odbc20-install-config-win.html" target="_self"&gt;Windows&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 04:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proper-syntax-to-access-a-Redshift-server-in-libname-statement/m-p/936308#M368058</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-19T04:17:44Z</dc:date>
    </item>
  </channel>
</rss>

