%let path= D:\test\SASLOG ; /*the path of LOG file*/ filename x pipe "dir &path.\*.log /s /b"; data check_log; infile x length=len; input fvar $varying200. len; length filename fname $ 200; infile dummy filevar=fvar filename=fname end=last length=len; do while(not last); input log $varying400. len; if upcase(log) in: ('ERROR' 'WARNING') then do;filename=fname;output;end; end; run; proc print noobs;run;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Register now!
Select SAS Training centers are offering in-person courses. View upcoming courses for:
View all other training opportunities.