You question is a very complex one, and there are several papers out there. You have to take into consideration font size, page orientation, width/height, style, line wrapping etc. And then it might not work. If you just want page numbers then for RTF/PDF you can use: ods escapechar= "^"; footnote j=r "Page ^{thispage} of ^{lastpage}"; That way pages are automatically generated for you. Or the way I tend to do things, generate the output once, look at it and decide that maybe I want ten observations per page: data want; set have; pgno=floor(_n_/10)+1; run; And use pgno as my break on / page in the proc report.
... View more