Hello All. I am currently working Patient profile in which i am using ODS RTF to generate profile in RTF. We want to have Table of Contents with appropriate page numbering and i am having trouble to get both Table of Contents and Page Numbering. here is my ODS RTF code in which i am presenting Contents = Yes for TOC and Thispage and Lastpage in my footnote for pagenumer. I am getting appropriate Table of Content however page Number is messing up because of table of contents. it is counting one page extra at the end of report. e.g. "Page 89 of 90" on last page. options nodate nonumber; ods listing close; ods rtf file="p-&&subj&i.._hs.rtf" toc_data contents=yes; ods escapechar='~'; footnote1 j=l font=arial bold height=10pt "Program: Patient Profiles/l-patient-profiles.sas" j=r font=arial bold height=10pt "Page ~{thispage} of ~{lastpage}"; any feedback or suggestion would highly appreciated. Thank you, HS.
... View more