<?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 add postgresql to sas managment console? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808715#M33716</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;already proposed try first to issue a libname out of SAS code before diving into a metadata definition for such a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1650411927685.png" style="width: 565px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70620i52B7E837FE912BE2/image-dimensions/565x24?v=v2" width="565" height="24" role="button" title="Patrick_0-1650411927685.png" alt="Patrick_0-1650411927685.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 23:46:23 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2022-04-19T23:46:23Z</dc:date>
    <item>
      <title>how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/807960#M33662</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I m new in sas, and I have, a problem with conection sas managment console to postgresql base. When I try to register tables, program returns this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ERROR: CLI error trying to establish connection: could not connect to server: No such file or directory&lt;BR /&gt;locally and accepting&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;and this error:&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: could not connect to server: Connection timed out&lt;BR /&gt;"IP" and accepting&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;When I try to connect by odbc program returns this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Data source name not found and no default driver&lt;BR /&gt;specified&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somebody knows how to solution this problem or have instruction how to connect sas to postgresql?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 06:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/807960#M33662</guid>
      <dc:creator>Dawid3</dc:creator>
      <dc:date>2022-04-15T06:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/807987#M33664</link>
      <description>&lt;P&gt;Looks like the connection to Postgresql connection has not been setup.&lt;/P&gt;
&lt;P&gt;Your SAS and OS Administrators should be of help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 12:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/807987#M33664</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-15T12:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808210#M33669</link>
      <description>&lt;P&gt;Has the data library definition for Postgresql been created by you or by someone else? If it is by someone else then as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp; has said your SAS administrator should be able to help. If you are defining the connection, the best way to make sure it is correct is to try it out in a LIBNAME statement first.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 00:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808210#M33669</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-17T00:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808491#M33701</link>
      <description>&lt;P&gt;When i run this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc setinit noalias; run; %put _all_; proc product_status; run;&lt;/P&gt;&lt;P&gt;program returns this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---SAS/ACCESS to Postgres&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For SAS/ACCESS to Postgres ...&lt;BR /&gt;Custom version information: 9.4_M7&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 05:37:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808491#M33701</guid>
      <dc:creator>Dawid3</dc:creator>
      <dc:date>2022-04-19T05:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808697#M33714</link>
      <description>&lt;P&gt;The original errors you posted indicated the correct software is installed, but the SMC data library definition is incorrect. So still need the answers to the questions in my previous post.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 22:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808697#M33714</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-19T22:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808707#M33715</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422924"&gt;@Dawid3&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The output of the proc setinit indicates that you have the SAS Access interface to Postgres.&lt;BR /&gt;From a reading of your first it indicates that SAS is on a Unix Server.&lt;/P&gt;
&lt;P&gt;You have said that you are new to SAS. Therefore I would suggest the fhe following.&lt;BR /&gt;As suggested in my earlier post I would suggest that if you have a SAS Administrator, do take his assistance. Otherwise somebody already working at SAS at your place. They would be having a better understanding of your environment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your post lists the following&lt;/P&gt;
&lt;PRE&gt;ERROR: CLI error trying to establish connection: could not connect to server: No such file or directory
locally and accepting
ERROR: Error in the LIBNAME statement.&lt;/PRE&gt;
&lt;P&gt;The first indicates that a connection could not be established to the server. Under such circumstances one should find out why it could not be established.&lt;BR /&gt;The second error is a natural outcome of the first.&lt;/P&gt;
&lt;P&gt;As a first step one has to check if a connection can be established using a libname statement.&amp;nbsp; If that works you can create a database connection in the SMC.&lt;/P&gt;
&lt;P&gt;It appears that you are in the SAS is installed in the Unix/Linux environment, you can open the SAS session in the command line with -nodms option and run the following statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test  postgres server=your_server_name port=5432 
   user=username  password='password' database=database_name;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Alternatively the above command can be run in the SAS Enterprise Guide or SAS Studio or the SAS Windowing environment.)&lt;BR /&gt;If everything works, there should be no error in the log and you will see that the libname has been set.&lt;BR /&gt;If this step is OK, then read the following and see if a connection has been configured correctly in the SAS Management Console.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2013/02/13/registering-dbms-data-in-sas-management-console/&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/2357-2018.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2018/2357-2018.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In the event the libname statement fails, please post the log with details about your SAS environment.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 23:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808707#M33715</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-19T23:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808715#M33716</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;already proposed try first to issue a libname out of SAS code before diving into a metadata definition for such a libname.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1650411927685.png" style="width: 565px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70620i52B7E837FE912BE2/image-dimensions/565x24?v=v2" width="565" height="24" role="button" title="Patrick_0-1650411927685.png" alt="Patrick_0-1650411927685.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nc2tikruabp6n1008nkdf0buee.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 23:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/808715#M33716</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-19T23:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809687#M33782</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hi, the problem was with postgre, and more precisely, in a file called pg_hba.conf, you had to correctly set up the allow replication connections from the host section.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809687#M33782</guid>
      <dc:creator>Dawid3</dc:creator>
      <dc:date>2022-04-25T13:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809700#M33785</link>
      <description>Was your issue resolved?&lt;BR /&gt;The fact that the pg_hba.conf had to be updated/modified indicates that the PostgreSQL server  was not properly configured.&lt;BR /&gt;This files has configuration settings which in simple terms  define who can  connect and from where one can connect. &lt;BR /&gt;This explains the cause of the error&lt;BR /&gt;ERROR: CLI error trying to establish connection: could not connect to server: No such file or directory&lt;BR /&gt;locally and accepting.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2022 14:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809700#M33785</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-25T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809727#M33792</link>
      <description>Yes, my issue is solved, it was about what you've said. After modyfing the file everything works perfectly</description>
      <pubDate>Mon, 25 Apr 2022 16:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809727#M33792</guid>
      <dc:creator>Dawid3</dc:creator>
      <dc:date>2022-04-25T16:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to add postgresql to sas managment console?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809772#M33793</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422924"&gt;@Dawid3&lt;/a&gt;&amp;nbsp; - Please update your post as answered in that case.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-add-postgresql-to-sas-managment-console/m-p/809772#M33793</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-25T20:07:27Z</dc:date>
    </item>
  </channel>
</rss>

