BookmarkSubscribeRSS Feed
Rose_G
Calcite | Level 5
Is the {pageof} function case sensitive? I tried ^{PAGEOF} and it did not resolve but ^{pageof} did (so I am assuming it is case sensitive but I've found nothing that says it should be).
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi, Rose:
You are correct -- it appears that if ods escapechar='^';
then
[pre]
^{pageof}
^{thispage}
^{lastpage}
[/pre]

only work when specified in lowercase. Some pieces of ODS ESCAPECHAR are case sensitive...for example ^S= will work, but ^s= will NOT work. However, the documenatation for ODS ESCAPECHAR hasn't hit production yet -- how ESCAPECHAR works is going to change a bit in SAS 9.2 (see this paper):
http://www2.sas.com/proceedings/sugi31/227-31.pdf

cynthia
Cynthia_sas
Diamond | Level 26
Hi:
Here's an update. I heard from one of the ODS developers and along with the new 9.2 syntax for using ODS ESCAPECHAR, the syntax will accept any case... so
[pre]
^{STYLE .... }
^{style .... }
[/pre]
will both be acceptable. You should expect that the page-numbering ESCAPECHAR strings will follow that same design and be case insensitive....in 9.2 ... until then, if you are using the current syntax, you will have to stick with the current limitation.

cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register 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
  • 1125 views
  • 0 likes
  • 2 in conversation