BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

ods rtf file='path' ;

proc report data=raw ;

columns cat col1 col2 col3;

run;

proc report data=raw ;

columns cat col4 col5 col6;

run;

ods rtf close;

for above program I am getting page numbers like
first page:  1 of 3
second page: 1 of 3

third page : 2 of 3

my question is how to continue page number for second page onwards

1 REPLY 1
Cynthia_sas
Diamond | Level 26

Hi:
I don't understand what you are trying to do. You don't show any title statement or any controls that insert page numbers into your ODS RTF output. Usually when you open an RTF file, you need to go into PRINT PREVIEW mode to see the page x of y page numbers, as shown below:

Cynthia_sas_0-1644256487892.png

My experience with RTF files opened in Word is that sometimes the page numbers can look odd until you do something to force Word to paginate -- I think PRINT PREVIEW does that, which is why I always recommend looking at your pages in print preview to verify margins, titles, footnotes and page numbers.


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
  • 907 views
  • 1 like
  • 2 in conversation