BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi can any one tell me how to insert page x of y in SAS v 8.2
i tried this code but it is not working
footnote j=r 'Page ~{thispage} of ~{lastpage}';
thank you
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
Since HTML doesn't do page numbers, you must mean either RTF or PDF. RTF is covered in this Tech Support note for 8.2:
http://support.sas.com/kb/24/042.html
(warning -- do NOT delete or change a single curly brace in this RTF control string)

For PDF, you had to create a PostScript file (as I remember) write a program to "post-process" the PostScript file to insert the X of Y string and then manually distill the PostScript file to a PDF format. (Reason enough to get SAS 9 right there). Here's the older link: http://support.sas.com/rnd/base/ods/odsprinter/ Look for the section on Pageof or XofY. If you're interested in PDF, you may have to contact Tech Support for more help on this one. I think there's a SAS macro or program that you can download to get you started.

cynthia

cynthia
deleted_user
Not applicable
Hi
Actually i want this in Pdf and Rtf in the following format
Page 1 of 10
thank you

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1293 views
  • 0 likes
  • 2 in conversation