Inserting Text with the PREPAGE= Option
We have seen already how to insert text into destination output files using the ODS TEXT= option. Another way to insert text above a table on a page is to use the PREPAGE= option.
In the original RTF destination, the PREPAGE= option was used with the WORDSTYLE option to create a custom table of contents (before the CONTENTS= option was available). Consider the following program:
ODS RTF FILE='prepage.rtf' PREPAGE ='Caption Above Table'; ODS TAGSETS.RTF FILE='prepage_tagsets.rtf' PREPAGE='Caption Above Table'; title 'Human Resources Reports'; proc means data=hr nonobs maxdec=0 mean sum; class Department; var AnnualSalary; run; proc print data=hr(obs=25); run; ODS _ALL_ CLOSE;
If you review the outputs, ...
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.