The following SAS technical support note/document should provide you guidance with using FILENAME
and PIPE to read your directory/file information and then process the file list individually with
your own DATA/PROC step(s), as needed.
Date: Sat, Jun 24 2006 11:01 am
SUBJ: Reading multiple .RPT files from a Folder into SAS dataset
I have a folder containg around 30 .RPT ASCII text files and I need to
read all of them into a single SAS dataset. The .rpt files are huge and
doing the Import individually might be a time consuming effort. Is
there a method of reading files from a folder one by one and converting
them into SAS datasets. Needed help from all of you if anyone has done
something similar and how should one go about it .