<?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: Problems with postgresODBC drivers in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843733#M25488</link>
    <description>&lt;P&gt;It turned out to solve the connection problem by using the "noprompt" parameter in assign library.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These properties can be added to Other Options in SAS MC in the library properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;LIBNAME &amp;lt;NAME&amp;gt; ODBC noprompt="uid=&amp;lt;login&amp;gt;;pwd=&amp;lt;password&amp;gt;;dsn=&amp;lt;name in odbc.ini&amp;gt;;server=&amp;lt;db host name&amp;gt;;database=&amp;lt;name of db&amp;gt;;" &amp;lt;other default assign options&amp;gt;;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 09:50:20 GMT</pubDate>
    <dc:creator>John_Wick</dc:creator>
    <dc:date>2022-11-11T09:50:20Z</dc:date>
    <item>
      <title>Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843190#M25472</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;I came across a problem connecting SAS to PostgreSQL via SAS ACCESS to ODBC.&lt;/P&gt;&lt;P&gt;I had some drivers in &amp;lt;sashome&amp;gt;/SASODBCDriversfortheWebInfrastructurePlatformDataServer/9.4/Driver, but psqlodbcw.so and psqlodbca.so returned data in UTF-8, but I need ANSI. SAS&amp;nbsp;accept them. After I installed the new postgresODBC drivers &lt;A href="https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-8.5-x86_64/postgresql13-odbc-13.02.0000-1PGDG.rhel8.x86_64.rpm" target="_blank"&gt;https://download.postgresql.org/pub/repos/yum/13/redhat/rhel-8.5-x86_64/postgresql13-odbc-13.02.0000-1PGDG.rhel8.x86_64.rpm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But SAS refuses to accept them:&lt;/P&gt;&lt;P&gt;"""ERROR: CLI error trying to establish connection: [unixODBC] could not connect to server: No such file or directory. Is the server running locally and accepting connections on Unix domain socket '/tmp/.s.PGSQL.5432'? """&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request via console isql/iusql passes normally, odbc.ini is the same. isql/iusql returns both in UTF-8 or ANSI, but SAS refuses to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Parameters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;System:&amp;nbsp; x86_64 RHEL 8.6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Session encoding SAS - KZ1048, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Encoding DB - UTF-8, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Postgres DB - v13.6&amp;nbsp;on a remote server x86_64 RHEL 8.5.0-4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;unixODBC - v2.3.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which version of postgresODBC is better to use, or how to solve the problem of getting data in ANSI? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Changing the encoding of the SAS session, changing the encoding of the database, using DataDirect is not suitable yet((&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 17:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843190#M25472</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2022-11-08T17:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843223#M25474</link>
      <description>&lt;P&gt;Have you made the required configuration changes for the new ODBC driver:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"You might have to use a text editor to modify the odbc.ini file in your home directory to configure&lt;BR /&gt;data sources. Some ODBC driver vendors may allow a system administrator to maintain a centralized&lt;BR /&gt;copy by setting an environment variable.&lt;BR /&gt;&lt;BR /&gt;The ODBC drivers are ODBC API-compliant dynamic link libraries, referred to in UNIX as shared&lt;BR /&gt;objects. You must include the full path to the dynamic link libraries in the OS load library&lt;BR /&gt;environment variable, i.e., LD_LIBRARY_PATH, LIBPATH, or SHLIB_PATH, so that the ODBC drivers&lt;BR /&gt;can be loaded dynamically at run time."&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843223#M25474</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-08T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843358#M25476</link>
      <description>Hi, SASKiwi&lt;BR /&gt;All paths are set in ld_library_path, which outputs ldd &amp;lt;path to psqlodbca.so &amp;gt;. If they were not specified, the error "File not found" would appear. After installing the new driver postgresODBC, the old driver also broke... with same error...(</description>
      <pubDate>Wed, 09 Nov 2022 13:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843358#M25476</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2022-11-09T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843454#M25477</link>
      <description>&lt;P&gt;I suggest you open a Tech Support track for your problem if you haven't done so already as they are in the best position to help.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843454#M25477</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-11-09T19:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843629#M25479</link>
      <description>&lt;P&gt;1.The drivers in &amp;lt;sashome&amp;gt;/SASODBCDriversfortheWebInfrastructurePlatformDataServer/9.4/1. Driver are for use of SAS Infrastructure Data Server which is incidenally is PostgresQL&lt;BR /&gt;The error &lt;BR /&gt;""""ERROR: CLI error trying to establish connection: [unixODBC] could not connect to server: No such file or directory. Is the server running locally and accepting connections on Unix domain socket '/tmp/.s.PGSQL.5432'? """&lt;BR /&gt;clearly indicates that SAS is unable to connect to the remote PostgreSQL database.&lt;BR /&gt;As you are able to connect using ISQL, the error is most likely due ot some error in configuration. Check if you have a postgresql-odbc client installed on the SAS Application Server and it is configured appropriately.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 17:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843629#M25479</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-11-10T17:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843645#M25484</link>
      <description>Make sure your odbc.ini parameters are correct, for example your error shows that you are trying to connect locally instead of remote. Try to use&lt;BR /&gt;servername=remote.server.example&lt;BR /&gt;or&lt;BR /&gt;HostName=remote.server.example&lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;server=remote.server.example</description>
      <pubDate>Thu, 10 Nov 2022 17:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843645#M25484</guid>
      <dc:creator>Acamacho85</dc:creator>
      <dc:date>2022-11-10T17:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with postgresODBC drivers</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843733#M25488</link>
      <description>&lt;P&gt;It turned out to solve the connection problem by using the "noprompt" parameter in assign library.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These properties can be added to Other Options in SAS MC in the library properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;LIBNAME &amp;lt;NAME&amp;gt; ODBC noprompt="uid=&amp;lt;login&amp;gt;;pwd=&amp;lt;password&amp;gt;;dsn=&amp;lt;name in odbc.ini&amp;gt;;server=&amp;lt;db host name&amp;gt;;database=&amp;lt;name of db&amp;gt;;" &amp;lt;other default assign options&amp;gt;;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 09:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Problems-with-postgresODBC-drivers/m-p/843733#M25488</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2022-11-11T09:50:20Z</dc:date>
    </item>
  </channel>
</rss>

