BookmarkSubscribeRSS Feed
twalla96
Calcite | Level 5

I am trying to connect to Postgres in Base SAS 9.4 for the first time using the following command:

libname pg postgres user=**** pwd=***** server="****" database=**** conopts="sslmode=require" ;

I am receiving the following error:

CLI error trying to establish connection: Service negotation failed; The client and server
cannot communicate, because they do not possess a common algorithm. in
DoSchannelNegotiation:CreateSchannelCredentials

If anyone recognizes this error, please let me know how you resolved it!

2 REPLIES 2
ballardw
Super User

I find this https://community.denodo.com/answers/question/details?questionId=9064u000000HA0PAAW&title=Setting+up...

with most of the same error text and a "solution" that points to possible TLS protocol settings as being involved.

 

May mean a call to SAS tech support is the way to go.

wormenhi
Calcite | Level 5

Did you configure the pg_hba.conf file to allow the connection from remote? If there is no specific entry with user, database and network you will not be able to connect to the PostgreSQL database at all.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 786 views
  • 0 likes
  • 3 in conversation