LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 9 Jul 2007 18:16:18 -0400
Reply-To:     Arthur Tabachneck <art297@NETSCAPE.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Arthur Tabachneck <art297@NETSCAPE.NET>
Subject:      Re: Import access files to SAS
Comments: To: SUBSCRIBE SAS-L Yufei Wang <yufeiw@GMAIL.COM>


Dependent upon the structure of your access databases, the task could be as simple as something like:

%macro getfiles; %do i=1 %to 128; libname county&i. access "C:\temp\NY_county&i..mdb"; %end;

data want; set %do i=1 %to 128; county&i..table1 %end; ; run; %mend;


Art -------- On Mon, 9 Jul 2007 17:18:47 -0400, Yufei Wang <yufeiw@GMAIL.COM> wrote:

>Is it same as importing multiple excel files to SAS? >like Wenshui's blog shows: > using.html >My problem is the files are not in the same director. The access file stores >the attribute data for each county in each countie's directory, like this: >C:\temp\NY_county1\*.mdb >C:\temp\NY_county2\*.mdb >C:\temp\NY_county3\*.mdb >C:\temp\NY_county3\*.mdb >C:\temp\NY_county4\*.mdb >........

Back to: Top of message | Previous page | Main SAS-L page