10-10-2013 04:44 PM
I am using the put _ALL_ statement to print results from a data step in the SAS log, but my output is too large. How can I suppress the put statement to only print a specified number in the SAS log (e.g. 50, 100 lines, etc.).
10-10-2013 05:02 PM
The dataset options Firstobs and Obs may help.
To print starting at the 50th record and print 100 lines
set have (firstobs=50 obs=149);
You might want to try using File Print to send the output and/ or current ods destination.
10-12-2013 09:58 AM
Use the MOD() function on the observation counter.
if mod(_n_,50) = 1 then put (_n_ _all_) (=);
You might want to change the interval based on the size of the input dataset.
set x nobs=nobs ;
if mod(_n_,int(nobs/100)) = 1 then put (_n_ _all_) (=);