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
Diamond | Level 26
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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1568 views
  • 0 likes
  • 2 in conversation