BookmarkSubscribeRSS Feed
KevinViel
Pyrite | Level 9

If one use functions such as {thispage} and {lastpage}:

 

footnote7 font    = "Courier New"
          height  = 8pt 
		  justify = r
          "Page ~{thispage} of ~{lastpage}"
          ;

with output sent to the ODS DOCUMENT designation, is it possible to make it static when one REPLAY's it with the DOCUMENT procedure?

 

I have a request to collate multiple RTFs with a ToC, but to keep the original page numbering.  If I collate three RF of two pages each, in the second the page number is Page 3 of 6, not Page 1 of 2.  I suspect that the answer may be "no" since it seems to be something that the program rendering the RTF, such as MS Word, creates the values.

 

Thank you,

 

Kevin

 

 

1 REPLY 1
ballardw
Super User

The mysteries of Word and footnote content are many. This would, IIRC, involve the section break properties and "don't continue numbering from previous section" or similar menu choice when manually creating a Word document.

 

If you can find the RAW RTF code to do such you may be able to insert using the RAW function with Escapechar similar to the ~{thispage}. Maybe. I suspect that getting the order of function calls correct in relation to the document may be pretty challenging.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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