The following Question & Answer List is based on SAS questions received by the author.
Reading Flat Files
I have a changing number of files with similar names and the same data layout that I want to be able to read into a single DATA step. Is there an easy way to read them all without necessarily knowing all their names and how many exist?
In SAS version 6.12 and above for Windows and UNIX you can use the wildcard character '*' in the file specification for FILENAME or INFILE, so if all you files begin with the same text the code will read them all, e.g.: