Controlling Page Breaks

As with RTF output, you can turn page breaks on and off for the printer destinations. This allows you to save some space if you have a procedure that doesn't generate much output. By turning off page breaks, you can start the next procedure's output on the same page.

To turn page breaks off, use the STARTPAGE=NO option. For example, if you have a small table produced by the MEANS procedure, and you'd like to continue your report with the results from a PROC UNIVARIATE step on the same page, the following code will do the trick:

ODS PDF FILE='startpage.pdf' STARTPAGE=NO;
proc means data=gallery maxdec=0;
   var sales revenue;
run;
proc univariate data=gallery normal;
   var sales revenue;
run;
ODS PDF CLOSE;

This code produces ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.