BookmarkSubscribeRSS Feed
Sudhakar_A
Calcite | Level 5
Hi,

I am creating the RTF output using ODS RTF, I want to print the title and footnote in the Body part of the RTF file, so i am using Bodytitle option, but i cant able to print the pagenumber in "Page x of y" format in the title.

Please help me to solve this issue.

Thanks
Sudhakar
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Please refer to the documentation for an explanation of this behavior:
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002233270.htm#a003176447

The fix is to NOT use the BODYTITLE option, as it says in the doc:
"You can use the PAGEOF function in the TITLE and FOOTNOTE statements. However, if the BODYTITLE option is also specified with the ODS RTF statement, the "page of" information is not written as expected because the BODYTITLE option removes the titles and footnotes from the header and footer sections of the RTF file. If the desired location of the page numbering is in the title or the footnote, remove the BODYTITLE option."


cynthia
Sudhakar_A
Calcite | Level 5
Thank you for the effort, But i dont want to put the title and foot note in the Header section of the RTf file because i need to append all the table outputs and i have to create a TOC for that.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1212 views
  • 0 likes
  • 2 in conversation