BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I have been producing statistical output in ODS RTF and up until now have had the page numbers embedded into a title so that my titles and page numbering are coming out in the header box of the .RTF file as page 1 / 2 etc

However, it is now required that the titles need to be outside of the header box when it goes into the .RTF document.
The two methods I can see of doing this are as follows:

- Using BODYTITLE - but this seems to distort all my titles (moves them to teh right and compresses) and does not display the page numbers anymore.
- Using ODS TAGSETS.RTF (as I am using v9.2 of SAS). Here the titles come out fine except again the page numbers are missing.

I have checked that the page numbers do come out fine when the page numbers are inside the header - and the output also comes out lovely in .PDF, but unfortunatley .PDF is not the required format.
Also the page numbers are there when you print preview or print the document out, but unfortunatly this is not an acceptable outcome for an electronic output.

If anyone has any ideas on how to get the page x of y presented in a .RTF file outside of the header box without having to manually program page numbers up in SAS then that woudl be much appreciated!

Thanks

Paul
2 REPLIES 2
wayne_sas
SAS Employee
The page numbers and page of syntax are field edit instructions in the rtf. When they occur in the title, they are activated automatically,even in edit mode. When they are activated in the body, each one has to be activated independently.

In both tagsets.rtf and the traditonal rtf using body title, you can switch from edit mode to print preview mode. This will expand all the instructions. If you were to print them, they would also show up.

Another choice is the modify the pagno style. The default page numbers show up in the "header" section of the rtf doc. And then you could see them in edit mode also. You would have to apply the style to the rtf document wiht "ods rtf style=yourstyle" ...
You would not be using a title statement to post pagenumbers, so you would not be using "options nonumber" to suppress the defaults.
deleted_user
Not applicable
Thanks for your suggestions Wayne - I am reverting to doing the paging in SAS now as I think this will give me more control over this (and since PDF and RTF files seem to apply different rules for paging - ie ods rtf gives different number of pages sometimes than ods pdf).

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