As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Page X of Y

From sasCommunity
Jump to: navigation, search

Page X of Y

See also: http://support.sas.com/techsup/technote/ts659/ts659.html

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: [1]

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)