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
SAS Super FREQ

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

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