<?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 ODBC and Redshift not working in LIBNAME statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837231#M41530</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following statement returns an error. I am utilizing SAS EG 7.1 locally, no connection/server profile setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* ODBC Method */
libname myAWS odbc datasrc=&amp;amp;server
complete="                  &amp;amp;odbparams"
schema=&amp;amp;schema;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;specified&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the odbc.ini on my computer updated with correct settings and am able to utilize that in other connections like SQL Workbench, but I am unable to assign a readable library on SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following libname works, but requires odbc wrap which isn't ideal because I don't want to have to memorize schemas and table structures. I'd like to see them in SAS EG in the library section.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname myAWS ODBC DSN = AWS readbuff=1;&lt;/CODE&gt;&lt;/PRE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 17:59:44 GMT</pubDate>
    <dc:creator>illmatic</dc:creator>
    <dc:date>2022-10-06T17:59:44Z</dc:date>
    <item>
      <title>ODBC and Redshift not working in LIBNAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837231#M41530</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following statement returns an error. I am utilizing SAS EG 7.1 locally, no connection/server profile setup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* ODBC Method */
libname myAWS odbc datasrc=&amp;amp;server
complete="                  &amp;amp;odbparams"
schema=&amp;amp;schema;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;specified&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the odbc.ini on my computer updated with correct settings and am able to utilize that in other connections like SQL Workbench, but I am unable to assign a readable library on SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following libname works, but requires odbc wrap which isn't ideal because I don't want to have to memorize schemas and table structures. I'd like to see them in SAS EG in the library section.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname myAWS ODBC DSN = AWS readbuff=1;&lt;/CODE&gt;&lt;/PRE&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 17:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837231#M41530</guid>
      <dc:creator>illmatic</dc:creator>
      <dc:date>2022-10-06T17:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC and Redshift not working in LIBNAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837239#M41531</link>
      <description>&lt;P&gt;To clarify, when you say you are using Enterprise Guide locally, I'm assuming you mean you are connecting to a local SAS server (SAS 9.4 installed on the same PC as Enterprise Guide). Did you install and configure the Redshift ODBC driver in the ODBC administrator on your PC so it can 'talk' to the database?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html#install-odbc-driver-windows" target="_blank"&gt;https://docs.aws.amazon.com/redshift/latest/mgmt/configure-odbc-connection.html#install-odbc-driver-windows&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, I would first open Base SAS 9.4 on the PC and try a prompted connection with code such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME MyAWS ODBC PROMPT=YES;&lt;BR /&gt;%put %superq(sysdbmsg);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will be prompted to select the ODBC DSN you created and also enter the correct information for server, username, etc to connect to the dbase. If that is successful, the necessary connection parameters will be written to the log.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837239#M41531</guid>
      <dc:creator>jebjur</dc:creator>
      <dc:date>2022-10-06T18:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC and Redshift not working in LIBNAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837244#M41532</link>
      <description>&lt;P&gt;That did it. Thanks a bunch!!!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ODBC-and-Redshift-not-working-in-LIBNAME-statement/m-p/837244#M41532</guid>
      <dc:creator>illmatic</dc:creator>
      <dc:date>2022-10-06T18:37:18Z</dc:date>
    </item>
  </channel>
</rss>

