Tips:Page X of Y
From sasCommunity
When 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 transit, the receiver will know to call you back and ask for the missing page.
For a simple "Page x of y" in the header instead of a page number, use this code:
OPTIONS NONUMBER;
ODS ESCAPECHAR='^';
title justify=center 'My SAS Report'
justify=right 'Page ^{pageof}';
You can also construct more customized numbering systems using {thispage} and {lastpage} to get just the page numbers, instead of {pageof} which is always formatted as "x of y".
Submitted by Lauren Haworth. Contact me at my Discussion Page.
....read more
