Hi,
I have SAS 9.4, and I need to create a new schema on decision manager postgresql, to use it for data integration purposes.
I got my ODBC working, DSN entry, Libname working fine, test the connection is perfect, even I can see the table names during "Register Tables" wizard, BUT register table abort with error "ERROR: CLI describe error: E", and I got the same error in SAS Studio...
I'm attaching some snaps may be useful. Any thoughts please ??
Hi @AhmedAccordBGro,
If I had to guess, my guess would be a character set issue; the key word is guess. In order to answer your question, we will need more information.
We need to see your specific LIBNAME statement.
Your entire SAS log (especially the entire error message). Try to keep it very simple.
Is your SAS server running on Linux or Windows?
The odbc.ini entry for your DSN.
Are you using an Easysoft driver?
Best wishes,
Jeff
HI JBaily,
HYG..
SAS App Server:
OS: Red Hat Enterprise Linux Server release 7.6 (Maipo)
SAS: SAS 9.4 Rev. 940_18w47
DSN:
[PGS]
Driver=/sas/sashome/SASODBCDriversfortheWebInfrastructurePlatformDataServer/9.4/Driver/psqlodbcw.so
ServerName=sasem.servers.gov
schema=public
username=dcmdb
password=Passw0rd
db=dcmdb
port=10482
UseServerSidePrepare=1
LIB Stmnt:
LIBNAME PGLIB odbc DSN=PGS schema=public;
Log:
PROC SQL;
connect using PGLIB;
select * from connection to PGLIB
(select 1);
quit;
Run the following SAS OPTIONS statement and then rerun your code.
OPTIONS SASTRACE="d,,d" SASTRACELOC=saslog NOSTSUFFIX;
Then try adding the following to your LIBNAME statement.
PRESERVE_COL_NAMES=YES PRESERVE_TAB_NAMES=YES
Here is the full LIBNAME statement (based on the one you posted here):
LIBNAME PBLIB odbc DSN=PGS schema=public PRESERVE_COL_NAMES=YES PRESERVE_TAB_NAMES=YES;
Best wishes,
Jeff
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.