Note that when using the FILEVAR= option it is better to use DO WHILE() instead of DO UNTIL() to avoid any empty file in the list causing the data step to stop early because it read past the end the input file.
infile IN filevar=FILENAME end=EOF;
do while (not EOF);
input;
if find(_INFILE_, TEXT, 't') then output;
end;
... View more