Hi:
The page number in SAS is always incremented by 1. If you run this program, you will see 3 pages of output -- the formatted date is in the title and the footnote -- you decide where you want to see the date and page and in what format for the date. I show using the WEEKDATE. format. The title shows the simple page number, the footnote shows the X of Y page number.
cynthia
[pre]
options nodate nonumber pageno=1;
options orientation=portrait;
ods pdf file='c:\temp\xofy.pdf';
ods escapechar='^';
title j=l h=10pt "Created on: %sysfunc(today(),weekdate.)"
j=r h=10pt "^{thispage}";
footnote j=l h=10pt "Created on: %sysfunc(today(),weekdate.)"
j=r h=10pt "^{thispage} of ^{lastpage}";
proc print data=sashelp.shoes( obs=100);
run;
ods _all_ close;
[/pre]