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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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