Hi, suppose that I have 20 excel files file1 ... file20. To import an individual file, say file 1, I would do the following: PROC IMPORT OUT= file1 DATAFILE= " K:\FilesFormatted\file1.xlsx" DBMS= EXCEL REPLACE; sheet = "Sheet1"; GETNAMES=YES; MIXED=NO; SCANTEXT=YES; USEDATE=YES; SCANTIME=YES; RUN; (Please note that I want the imported sas data to have the same name as the original excel file). Is it possible to write a code, perhaps a macro, that will import all the files file1-file20 instead of repeating the above code for each individual excel file? Thank you
... View more