Hi All,
I am using below options to display page numbers in pdf document
ODS escapechar='^';
title3 j=right 'page ^{thispage} of ^{lastpage}';
but getting bellow output:
<RPage 1 of @>
can anyone help out me to get exact page numbers
Show the log from a code example that produces the wrong page numbers; start with the initial ODS PDF, and end with the ODS PDF CLOSE. If you use data that can't be taken out of SASHELP, provide it in a data step with datalines.
You will need to show more of your code, or a reproducible example.
The following example does number pages correctly
options papersize = (8.5in 2in);
ods pdf file="cars.pdf" style=journal; ODS escapechar='^'; title "sashelp.Cars" j=right 'page ^{thispage} of ^{lastpage}'; proc print noobs data=sashelp.cars; var make model type msrp invoice; run; ods pdf close;
PDF view capture
yes , initially it came but what happened I don't know suddenly it's did't work and not generating page numbers, do we have any other options to generate page numbers?
If I use below options it printing like page 1, but I want it as page 1 of 4
page ^{thispage}
Show the log from a code example that produces the wrong page numbers; start with the initial ODS PDF, and end with the ODS PDF CLOSE. If you use data that can't be taken out of SASHELP, provide it in a data step with datalines.
Thank you very much for your message, It's working fine now , I will give you screen shot of log if I face same issue again
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 25. 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.