Page X of Y
From sasCommunity
[edit] Page X of Y
See also: http://support.sas.com/techsup/technote/ts659/ts659.html
[edit] Page X of Y: ODS pdf
title 'ods pdf test page X of Y';
options linesize = max
pagesize = min;
ods escapechar = '*';
ods pdf file = 'C:\Temp\sas\testpageXofY.pdf';
%Let data = sashelp.air;
proc print data = &Data.;
title2 "&Data.";
title3 j=r 'page *{thispage} of *{lastpage}';
footnote j=r 'page *{thispage} of *{lastpage}';
run;
run;
ods pdf close;
run;
reference: http://www.sas.com/offices/europe/uk/newsletter/feature/20apr_may06/pdf.html
[edit] Page X of Y: ODS rtf
title 'ods rtf test page X of Y';
options linesize = max
pagesize = min;
ods escapechar = '*';
ods rtf file = 'C:\Temp\sas\testpageXofY.rtf';
%Let data = sashelp.air;
proc print data = &Data.;
title2 "&Data.";
title3 j=r 'page *{pageof}';
footnote j=r 'page *{pageof}';
run;
ods rtf close;
run;
--macro maven == the radical programmer 15:39, 16 August 2007 (EDT)
