Handling Page Breaks in RTF Output

In order for ODS to figure out how to fit your SAS output onto a word processor page, ODS uses the standard PAPERSIZE of LETTER, a page size of 8½ by 11 inches. Then, ODS uses this page width to determine how much information will fit in each row of your table. This ensures that your tables will not be too wide for the page. If a table will not fit the page width, ODS breaks up the table and wraps the output.

For example, the following code produces the output shown in Figure 4.8.

ODS RTF FILE='SalaryWide.rtf';
title 'Salary Report';
proc freq data=hr;
   format AnnualSalary salft.;
   tables Department*AnnualSalary / norow nocol nopct;
run;
ODS RTF CLOSE;

Notice how this frequency table is broken into smaller tables ...

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.