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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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