BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I am working with a long document and need to get the page numbers produced by ODS PDF stored into macro variables. Is there any way to do this? Any help would be greatly appreciated.

Thanks,

~Matt
1 REPLY 1
ScottH_SAS
SAS Employee
Matt,

I can't think of a way to do this. We do all the measuring in ODS and then release a page of output when it's full. Using the pre-production inline function ^{lastpage} your output can have a nice "Page 1 of n" look but that logic is not accessible anywhere else. Currently lastpage does not work with images. Hopefully we can get all of this in a future release.

Scott

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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