02-18-2015 09:56 AM
In a project i am getting an 5 excel files every day and want to append these files in sas eg so can you please provide me sas macro code so i can import and append all this at one go.
02-18-2015 10:05 AM
Scroll down to the last example named "Import all spreadsheets in all subfolders of a top folder"
02-18-2015 10:25 AM
Go back to source and ask them to supply data in a format other than Excel. Even getting it in CSV format will allow you to write robust datastep imports, with wildcards so you don't need to loop over files.
Not particularly heplfull I know, but it will save you some headaches. I will lay money on something will change in one of those Excel files at least once per import which will break your code.