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?

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

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
  • 706 views
  • 0 likes
  • 2 in conversation