BookmarkSubscribeRSS Feed
Statsconsultancy
Fluorite | Level 6
I will to open the access(mdb) file. Its name is prescription.mdb and is stored in the "Z" drive. I want to use proc import. I am getting a message saying "FILE= or TABLE= is required and must be specified". Please can someone help me.


PROC IMPORT datafile="Z:\prescription.mdb"
out=prescription
dbms=ACCESS
replace;
run;
proc print;run;
5 REPLIES 5
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
From the SAS support http://support.sas.com/ website and the discussion on PROC IMPORT.

Scott Barry
SBBWorks, Inc.

SAS/Access - PROC IMPORT Statement
http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003102095.htm
Statsconsultancy
Fluorite | Level 6
I have tried, but still i can't solve the problem. Please, can you have a look at me data steps and kindly advise me on that. What is the mistake on my program?

PROC IMPORT datafile="Z:\prescription.mdb"
out=mymdb
dbms=ACCESS
replace;
run;
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
After reading the DOC, what part of the SAS error message does not make sense? There are required parameters that are not specified, so the error occurs.

Also, you may want to explore using the SAS LIBNAME ACCESS ....; statement approach - see link to SAS-hosted DOC below:

http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a002107496.htm


Scott Barry
SBBWorks, Inc.
Doc_Duke
Rhodochrosite | Level 12
Your syntax is more appropriate to a file than a database. You need the TABLE= and other parameters. See
http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003103770.htm
for 9.2 specifics on Access DBs.
Bill
Quartz | Level 8
code that works that may give you some direction ...

PROC IMPORT OUT= WORK.NewOrdFaults
DATATABLE= "NewOrderFaults"
DBMS=ACCESS REPLACE;
DATABASE="\\Moftp\MainFrameFtp\ESADOWN\NewOrderFaults.MDB";
SCANMEMO=YES;
USEDATE=YES;
SCANTIME=NO;
RUN;

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!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 7329 views
  • 1 like
  • 4 in conversation