SAS Programming

DATA Step, Macro, Functions and more
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
SAS Super FREQ
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
SAS Super FREQ
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

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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