DATA Step, Macro, Functions and more

Accessing MICROSOFT ACCESS through SAS

Reply
Frequent Contributor
Posts: 76

Accessing MICROSOFT ACCESS through SAS

Dear All,

 

I just have one question in general. Can i read in a access file in SAS while I don't have MICROSOFT ACCESS  installed?

I tried using libname satement and import, neither worked.

 

Thank you!

 

Best wishes.

Super User
Posts: 19,768

Re: Accessing MICROSOFT ACCESS through SAS

Posted in reply to Xiaoningdemao

AFAIK you don't need Access to read an Access DB.

Post the code you've tried and the errors you've received.

Super User
Super User
Posts: 7,942

Re: Accessing MICROSOFT ACCESS through SAS

Posted in reply to Xiaoningdemao

Right, this is something I have been trying recently.  You need something available to read it, be that the Office suite, ACE ODBC driver, PCFiles Server etc.  If the file is old, MDB then its even more of a pain, bit incompatabilities etc.  We had to get an old version of Access and upgrade the version of those files.  Simply put, if you use M$ products you are tied into their software.  A final option, you could look at OpenOffice, LibreOffice, they tend to have parsers that can read files from Office.  Don't know how good they are for Access.  

 

There is however one other option that I found, its called youaccess, a command line tool which can dump the data out from MDB files to CSV:

http://youaccess.sourceforge.net/

It doesn't get the metadata (i.e. the structure of the data) as that is held very awkwardly in MDB, however you can get the data out.

Ask a Question
Discussion stats
  • 2 replies
  • 122 views
  • 0 likes
  • 3 in conversation