BookmarkSubscribeRSS Feed
chandu1
Calcite | Level 5

Hi ,

 

I  am running sas code in sas EG and got the below error . The database is Vertica . 

 

23         proc datasets lib=retaildw;

ERROR: CLI error trying to establish connection: [unixODBC][Driver Manager]Data source name not found, and no default driver

       specified

23       !                             run;

 

Please let me know why this error came .

 

we are  able to connect to the DB via sas if I manually assign the library (ie, without using the odbc.ini file)

 

 

libname mydata odbc complete="driver=/opt/vertica/lib64/libverticaodbc.so;

                              database=edw;userid=jonathan.berner;pwd=MYPASSWORD;

                              server=cammsaim211.corp.aimia.org"

                    schema=retail_husky_public;

 

 

 

1 REPLY 1
SASKiwi
PROC Star

That suggests that the connection definition in odbc.ini isn't the same as in your LIBNAME statement. Have you compared them?

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 744 views
  • 0 likes
  • 2 in conversation