I can't see a way to do this without subsetting the data first. Something like the following perhaps... Data large is a dummy dataset of 1 million records and data small is taking a record every 100,000. If you have a large dataset this may take a while.
HTH
Code:
data large;
do i=1 to 1000000;
output;
end;
run;
data small;
set large;
if ^mod(_n_,100000);
run;
proc print;run;
Actually, thinking about it, a simpler way to get the same result would be to use proc sql, (no proc print required as sql output is automatically printed) - try this...
Code:
proc sql;
select
variable1, variable2, etc
from your_dataset
where mod(monotonic(),100000)=0
;
quit;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.