SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 36288: Repeating text on an RTF page when the BODYTITLE option is in effect

DetailsCodeAboutRate It

By design, the BODYTITLE option on the ODS RTF statement only uses one instance of the titles and footnotes per table, and does not keep track of how many pages a table spans. If a table spans multiple pages, this means the title(s) will display on the first page, and the footnote(s) will display on the last page.

If text that repeats on every page is needed as part of the body of a document, you can use PROC REPORT logic which creates a "pagination" variable, and uses the PRETEXT and POSTTEXT style attributes to place text with every page. This pagination logic is also helpful if you keep the BODYTITLE option in effect and use TITLE or FOOTNOTE statements.

SAS Note 15727 shows how to get PAGEOF information using PROC TEMPLATE if the BODYTITLE option is in effect.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.