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?

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