- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Whenever I run the following line of code in SAS Studio:
libname test1 postgres server="192.xxx.xx.xxx" port=5432
user=postgres password='postgres' database=mydb;
I get this error:
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help @SASKiwi
The actual problem was that the 192.xxx.xx.xxx address is not reachable from the SAS Studio compute server.
The solution was that I had to ping my hostname and it revealed the SAS net ip address ("xxx.xxx.xx.xxx") and when I replaced my local server's ip (192.xxx.xx.xxx) with this new SAS net ip address, it WORKED!!!
libname test1 postgres server="xxx.xxx.xx.xxx" port=5432
user=postgres password='postgres' database=mydb;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
It is port 5432 on your SAS Compute server that needs to be checked. Try your PSQL command while remotely logged onto this server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your help @SASKiwi
The actual problem was that the 192.xxx.xx.xxx address is not reachable from the SAS Studio compute server.
The solution was that I had to ping my hostname and it revealed the SAS net ip address ("xxx.xxx.xx.xxx") and when I replaced my local server's ip (192.xxx.xx.xxx) with this new SAS net ip address, it WORKED!!!
libname test1 postgres server="xxx.xxx.xx.xxx" port=5432
user=postgres password='postgres' database=mydb;