Hi Tom, I have the following code: %macro alridat(dat,tab); pROC IMPORT OUT=Mydata.&tab.1 DATATABLE='&tab' DBMS=ACCESS REPLACE; DATABASE="c:\test\sep_18\&dat..accdb"; USEDATE=YES; SCANTIME=NO; DBSASLABEL=NONE; RUN; %mend; %alridat(1,Sunday); *********************************************************** I then can create a list of %alridat () commands using excel but surely I can do some sort of loop and array to get it done in sas to go through 1-30 for the files and for each file to search if there are any table names with sunday to saturday to be read in as sas files. Thanks, talat
... View more