You can concatenate filenames in the FILENAME, %INCLUDE, and INFILE statements. Concatenating filenames enables you to read those files sequentially.
FILENAME fileref (" pathname-1 " ... " pathname-n ");
%INCLUDE '(" filename-1 " ... " filename-n ")';
%INCLUDE "(' filename-1 ' ... ' filename-n ')";
INFILE '(" filename-1 " ... " filename-n ")';
INFILE "(' filename-1 ' ... ' filename-n ')";
You can enclose the pathnames in single or double quotation marks and separate them with commas or blank spaces. You can use the characters shown in Table 4.6 on page 115 and the wildcards described in "Using Wildcards in Pathnames (Input Only)" on page 134 to specify the pathnames.