Here is a technique I use that uses PRXMATCH to search for multiple strings. Hope you find it helpful.
%macro search(dir,string); filename listing pipe "dir &dir\*.sas /b"; data new; infile listing truncover ; input filename $80.; filename="&dir\" || filename; infile dummy filevar=filename end=done truncover; do while (not done); input x1 $100.; if prxmatch("m/&string/oi",x1) > 0 then output; end; run; %mend search;
/** macro and print are the two strings I am searching for. You need the | between each string you are searching for **/ %search(c:\my_folder,macro|print) proc print; run;
... View more