SAS Office Analytics, SAS Add-In for Microsoft Office, and other integrations

Import all Access tables in a folder

Reply
Occasional Contributor
Posts: 16

Import all Access tables in a folder

Is there a way to import all Microsoft Access tables found within a network folder without naming them specifically? I will have a monthly folder that will be populated with several access databases. I need to read them all in but I'd prefer not to have to change the code each month to specifically name each database.

Thanks!
SAS Super FREQ
Posts: 8,718

Re: Import all Access tables in a folder

Chip:
You might try checking out this PROC IMPORT sample program on the Tech Support site. It shows how to read files from a directory and then use PROC IMPORT on the files.

Sample 157: Reading multiple files with PROC IMPORT http://support.sas.com/ctx/samples/index.jsp?sid=157

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 184 views
  • 0 likes
  • 2 in conversation