BookmarkSubscribeRSS Feed
thanikondharish
Calcite | Level 5

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

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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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