BookmarkSubscribeRSS Feed
Nill
Calcite | Level 5

Hi  all,

I am trying to report ‘page 2 of 2’  and associated header information on page 2 (please see below) in rtf format using  ‘proc report’ and ‘ by’ statement .

I am executing this code using SAS 9.3( on XP_PRO platform).

Would you please suggest something to fix this?

Thanks.

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:

  Although it is useful to see the output, it would be more useful to see the code that you are using to insert page numbers into the output.

  For example, are you using RTF control strings? Are you using ODS ESCAPECHAR?

  Next, what version of Word are you using. It is unusual to have the page number in the Header area and the Footer area of the page, as your output shows. I am curious about how or why that is being done? Are you, by any chance, trying to insert your own page breaks that is one possibility for page numbers not working correctly.

  Or, the version of Word could be at fault. Sometimes, I know that I can get incorrect page numbers until I repaginate the Word document to 'straighten' up the page numbers.

  At any rate, if you are unable to share your program, this is a good question to ask of Tech Support. They can look at ALL your code and the technique you're using and the RTF destination that you're using (ODS RTF or ODS TAGSETS.RTF) and they can help you find a resolution.

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 1053 views
  • 0 likes
  • 2 in conversation