I currently have 700 folders that are all sequentially named.
The naming convention of the folders are as follows:-
2011-08-15_2011-08-15
2011-08-16
You should be able to wildcard the folders/files into a single fileref, e.g.
filename allfiles "c:\SAS_data\extract\*\*.txt" ; data alldata ; length fn _fn $256. ; infile allfiles lrecl=256 truncover filename=_fn ; fn = _fn ; /* Store the filename */ input ; put _INFILE_ ; run ;
The wildcard folder & file works in SAS Unix, not sure about SAS PC.