BookmarkSubscribeRSS Feed
NR13
Fluorite | Level 6

Hi! I'm wondering if there is a way to code Header1 on all the odd pages and Header2 on all the even pages, using ODS RTF?

3 REPLIES 3
Cynthia_sas
Diamond | Level 26
Hi:
I am not aware that this is possible with ODS RTF. You might have to wait for ODS WORD, which can make a .docx file to be able to do this. That would be a question for Tech Support.
Cynthia
NR13
Fluorite | Level 6

Thanks, Cynthia!

 

I know you can insert a page number into a footer. Is it possible to call that page number? I'm thinking maybe I could work around it, with an 'If page# in (1,3,5) then do;' 

Cynthia_sas
Diamond | Level 26
Hi:
That sounds like something you'd do in Visual Basic or Visual C++ -- it's not something you can really do in SAS. The page numbers are NOT "callable". Imagine what happens if someone opens the RTF file and readjusts the margins at the top and bottom to be 2 inches -- the page breaks and page numbers will be different.

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 3 replies
  • 1052 views
  • 0 likes
  • 2 in conversation