BookmarkSubscribeRSS Feed
JasonNC
Quartz | Level 8

Hi,

I am having a situation where i want the page numbers in comma format like 1,234

but when i am using  ~{THISPAGE} in ODS PDF it is creating the page number but with out comma like 1234.

Is there any way to make it work like that

For example:

my page should look like

PAGE:1,234 instead of

PAGE:1234.

i am using Proc Report and Data _NULL_.

Previously i was creating a Variable in the data set and used format on that but it is creating some problems.My variable is not printing fine in DATA _NULL_ when i am using LinesLeft=Lines

F0r example:

DATA _NULL_;

SET TEST;

PAGESIZE=60 LINESLEFT=LINES LINESIZE=157;

When I am using LinesLeft=Lines i have to use ~{THISPAGE} For Page Numbers instead of the variable i created.

1 REPLY 1
Cynthia_sas
SAS Super FREQ

Hi:

  You might want to check with Tech Support on this. I do not believe that you can impact the format of the page number from {thispage} or {lastpage}.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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