I run monthly programs that output series of print and tabular procedures (proc freq, proc means etc.). Each list or table can be a couple lines to hundreds of lines, varying from month to month. I want to remove all page breaks. The following code works except that table titles do not always go to next page when table is too large for remaining space. I tried ods pdf text= and other options, but can't solve this. Can someone help?
ods pdf file = "a:\ods\sample092610.pdf" startpage=no body style=styles.newpdf
title="Report for Sample Program";
data data1;
/* input statements */
run;
/* this subset may have a couple records or hundreds, no way to know where page
break should occur for next procedure */
proc print data=data1;
title2 "Sample Print Title";
where var1 = "Sample";
run;
proc freq data=data1;
title2 "This title is orphaned from table if table doesn't fit on same page";
tables var2;
run;
... View more