Thank you @Reeza and @Anthony45 for the suggestions. While the proc scapproc may work well it currently doesn't fulfill my needs at least with my current understand of the process. I did get this to work as a chucky dataset. %let myfile "&path.\&file..log";
data junk;
length junk $255. month $2. year $4. records 8.;
infile &myfile.;
input @1 junk $255.;
test = substr(junk,1,17);
if test = "NOTE: There were ";
delims = ' ,.!:';
numWords = countw(junk, delims);
filename = scan(junk,numWords, delims);
word2=scan(junk,4,delims);
records = word2;
delims = '_';
numWords = countw(filename,delims);
mon = scan(filename,numWords,delims);
year = substr(mon,1,4);
month = substr(mon,5,2);
output;
drop test mon junk word2 numwords delims;
run;
proc print data=junk2;
run;
... View more