Adding "Page X of Y" to RTF Reports

When you are producing multi-page reports, it's useful to be able to indicate how many pages the reader should expect. This avoids problems caused by someone not receiving all of the pages. If your SAS reports have page numbers in the format of "Page 1 of 3", "Page 2 of 3", etc., and a page gets lost in a fax transmission, the receiver will know to call you back and ask for the missing page.

Standard SAS page numbering just gives you a single page number. For example, Figure 4.23 shows the top of an RTF file created by ODS. The file contains a PROC PRINT report of the data set CLIPS. This is the first page of the output, so the page number 1 is generated in the top right header. This page number was generated ...

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.