BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasemi
Calcite | Level 5

Hi,

 

I am using SAS EG 7.1 and the following code trying to connect to PostgreSQL:

libname A1 postgres
  server=XXX
  port=5432
  database=XXX
  user=XXX
  password='XXX';

 

But I get an error like:

ERROR: The POSTGRES engine cannot be found.
ERROR: Error in the LIBNAME statement.

 

When run {proc setinit; run;}, find [SAS/ACCESS to Postgres] installed.

 

How to deal with it?

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

You use the SAS Deployment Wizard on the server where you want to add it and select the install additional software option. Note it would be safest to use the SAS install account to do this unless your user account has full admin access.

 

See here for more details: https://documentation.sas.com/?docsetId=whatsdiff&docsetTarget=installsteps.htm&docsetVersion=9.4&lo...

 

This type of task is best done by your SAS Administrator. Since you didn't know how to install additional software I'm assuming that you are not a SAS administrator - sorry if I got this wrong Smiley Happy

View solution in original post

4 REPLIES 4
ballardw
Super User

@sasemi wrote:

Hi,

 

I am using SAS EG 7.1 and the following code trying to connect to PostgreSQL:

libname A1 postgres
  server=XXX
  port=5432
  database=XXX
  user=XXX
  password='XXX';

 

But I get an error like:

ERROR: The POSTGRES engine cannot be found.
ERROR: Error in the LIBNAME statement.

 

When run {proc setinit; run;}, find [SAS/ACCESS to Postgres] installed.

 

How to deal with it?


Proc Setinit shows that a product is licensed.

 

Try

proc product_status;

run;

 

to show what is actually installed, or at least it does for SAS Display manager.

jebjur
SAS Employee

It's possible that you have SAS/Access to Postgres licensed but it is not installed on the server. Run the following code and see if SAS/Access to Postgres is listed in the product_status:

 

proc setinit noalias; run; %put _all_; proc product_status; run;

sasemi
Calcite | Level 5

proc setinit noalias; run;

 

Find:

SAS/ACCESS to Postgres

 

 

But,

proc product_status; run;

 

Can't find:

For SAS/ACCESS Interface to Postgres

 

How to install the component?

SASKiwi
PROC Star

You use the SAS Deployment Wizard on the server where you want to add it and select the install additional software option. Note it would be safest to use the SAS install account to do this unless your user account has full admin access.

 

See here for more details: https://documentation.sas.com/?docsetId=whatsdiff&docsetTarget=installsteps.htm&docsetVersion=9.4&lo...

 

This type of task is best done by your SAS Administrator. Since you didn't know how to install additional software I'm assuming that you are not a SAS administrator - sorry if I got this wrong Smiley Happy

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 4178 views
  • 0 likes
  • 4 in conversation