BookmarkSubscribeRSS Feed
rbikes
Obsidian | Level 7

So my project has me starting off with importing MS Access files, but the thing is I'm not able to do that. While I have ran this code below to tell me if I have SAS/ACCESS engine. :

PROC SETINIT;

RUN;

it tells me I do until for orcle, PC files, and ODBC.


I just can't run this code:

%let name="Path\location\AccessFileName";

option symbolgen;

proc import DBMS=ACCESSCS

  table="table1"

  OUT = tableout1

  REPLACE;

  DATABASE=&name;

RUN;

But This code bellow works

proc import datafile="Path\location\TableFileName"

     OUT=tableout2

     DBMS=xls

     REPLACE;

     getnames=yes;

RUN;

64 bit system, 64 bit SAS platform, 64 bit MS office suite. No idea what is happening.

Is my issue not specificity my server, and if that is the case how do I find what my server name is?

I've read this 33228 - An error occurs when you use SAS® 9.2 to import or export Microsoft Excel or Access files in...

but can't tell how to find my server...

6 REPLIES 6
ballardw
Super User

You used DATABASE in the first example not DATAFILE. Also the ; before DATABASE ended the Proc Import statement early.

rbikes
Obsidian | Level 7

You would be correct if for that part of code I was trying to import an excel file, but I was trying to open the MS access file.

Reeza
Super User

Have you tried doing it via the point and click import and saving the code?

If it doesn't work, it helps if you post the log as well.

rbikes
Obsidian | Level 7

Here is the error for the point and click.

ERROR: Connect: Class not registered

ERROR: Error in the LIBNAME statement.

Now using the libname:

libname mdb pcfiles path="test.mdb";

I get this error:

ERROR: Unable to locate pcfserver.exe. Please install PC Files Server.

ERROR: Error in the LIBNAME statement.

Which is so weird to me becase when I run this code it shows that I have PC Files and accessing excel files works just fine....:

---SAS/ACCESS Interface to PC Files

rbikes
Obsidian | Level 7

It turns out I am running a 32 bit MS Office, sorry about the missup and found this link.

38779 - The 64-bit edition of SAS/ACCESS® 9.2 Interface to ODBC running in a 64-bit Windows operatin...

Is there any update to this, or do we still need to use older SAS programs?

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 6 replies
  • 5092 views
  • 0 likes
  • 3 in conversation