Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
filename _in "c:\your_file.txt";
data _null_;
*** SET THE LRECL TO 1 SO THAT YOU CAN COUNT EACH BYTE ***;
infile _in lrecl=1 recfm=F end=last;
input;
ctr+1;
if last then
put ctr=; *** HERE IS WHERE YOU CAN PUT ANY SAS STATEMENT ***;
run;
*--------------------------------------------*;
* The following code will setup filename ref *;
* for the LOC current months file. sizes from*;
* Unix. *;
*--------------------------------------------*;
data _null_;
filename curloc pipe
"ls -l &datdir./&testDir.data/loc&cur_file |
awk '{print $5}'";
*--------------------------------------------*;
* The following data step will retrieve and *;
* store the prior months file sizes for later*;
* use. *;
*--------------------------------------------*;
data curlocfile;
infile curloc;
input filesize $;
c_loc_filsz = filesize;
call symput('c_loc_filsz',c_loc_filsz);
run
;
*--------------------------------------------*;
* The following print step will print the *;
* file sizes for the LOC current months file.*;
*--------------------------------------------*;
proc print data=curlocfile;
title "Current Month's LCO file";
run
;