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
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:
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
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 16. Read more here about why you should contribute and what is in it for you!
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.