Group File Processing With SAS Macros and the Data Step

Date Added: Mar 2010
Format: PDF

Sometimes there is a need to process a group or groups of files with one program. In some cases the number of files that need processing is not known in advance, only the location of the files and the format of the directories that contain the files are known. By using the SAS macro language along with data steps and SAS functions such as dopen, dnum, dread and d close, it is possible to process multiple files easily without a lot of complex programming. These techniques are becoming more useful with the switch of data arriving in electronic format rather than on paper.