I Am trying to read all the log files of a user to a dataset having incremental number version . Please check below example. I am SAS 9.4 , trying to extract all the log files of user1 having 17 versions into dataset chkmain. I tried below code, the iterations are working but not getting observations into dataset. Pease suggest. %macro version(file=,ver=); data chk_lst; %do i= 1 %to &ver ; infile "&pathname&file&i" lrecl=900 termstr=CRLF delimiter=' ' truncover; input f_1$1-900; output; %end; run; %mend; %version(file=user1.log@@/main/,ver=17);
... View more