Assuming there are 30 records in each page .
data class;
set sashelp.class
sashelp.class(in=inb)
sashelp.class(in=inc)
sashelp.class(in=ind);
if inb then do;if sex='F' then sex='S' ;else sex='D';end;
if inc then do;if sex='F' then sex='G' ;else sex='E';end;
if ind then do;if sex='F' then sex='A' ;else sex='V';end;
run;
proc sort data=class;by sex age;run;
data air;
set class;
if mod(_n_,30)=1 then group+1;
run;
ods pdf file='c:\temp\x.pdf';
proc report data=air nowd;
column group sex age weight height;
define group/group noprint;
define sex/order;
define age/order;
compute before group;
line ' ';
endcomp;
break after group/page;
run;
ods pdf close;
... View more