Desktop productivity for business analysts and programmers

Error Message for a libname

Reply
Occasional Contributor
Posts: 16

Error Message for a libname

I used to use the below code to connect to one of our ACCESS database at sharedrive.

 libname LOC access "\\...share\data\database.accdb";

however, we recently updated the SAS EG, and my code do not work any more, and it gave me below error message:

 

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.

 

same error message also happened to my proc export/ import procedure. i have to using import/export wizard to import or export my thousands external files weekly. But i still can use the libname statement to assign a permanent library on my share drive.

 

I used proc setinit to check our SAS module,  and we do have the SAS/ACCESS interface to PC Files module. our IT has no idea what happened. your response will be appreciated. Thank you.

Super User
Posts: 18,997

Re: Error Message for a libname

You likely upgraded to a version of SAS that is 64bit and your office is 32 bit.

 

See if you have PC file server installed. If so, start it up and use one of the following:

 

 libname LOC pcfiles path= "\\...share\data\database.accdb";

 libname LOC accessCS "\\...share\data\database.accdb";
Respected Advisor
Posts: 3,156

Re: Error Message for a libname

Darn 64bit? we had the same issue before, so give a try to see if it fits yours.

Super User
Posts: 3,233

Re: Error Message for a libname

An alternative solution to using the PC File Server to deal with the bitness problem is to install the 64-bit Microsoft ACE Database drivers as long as your SAS Server is Windows-based. These are available as a download from Microsoft.

Occasional Contributor
Posts: 16

Re: Error Message for a libname

Thank you all for the solution. I will contact IT department to check the suggestion. we are not allowed to change anything on computer, even minor as adobe reader updating. Thank you all.
Ask a Question
Discussion stats
  • 4 replies
  • 348 views
  • 0 likes
  • 4 in conversation