Hi All, I came across a macro, and I believe I got the basic understanding of the program, but would like some confirmation. datalogread; length file $256 dye 8 dte1 8 directory $256; format dte datetime; keep file dye dte1 directory; length filrf filerfb $8; directory =‘&directory’; rc1=filename(filrf,directory); opdir=dopen(filrf); memcount=dnum(opdir); if opdir <=0 then put ‘ERROR: Unable to open log folder.’; do i=1 to memcount; file=dread(opdir,i); rc2=filename(filrfb,catx(‘\’,directory,file)); fid=fopen(filrfb); dte=input (finfo(fid,’Create Time’),datetime.); dte1=dte; if dye >=&lastrun then output; rc3=fclose(fid) rc4=filename(filrfb); end; rc5=dclose(opdir); run; Would appreciate another pair of eyes, to help me understand this program. Your help on this is greatly appreciated. Thanks You.
... View more