BookmarkSubscribeRSS Feed
Morse_Bill
Obsidian | Level 7
I've been searching through the threads looking for an option to the ODS PDF statement to restart page number for each proc print. Does that exist?
Or, is an OPTIONS PAGENO=1; required for each proc print ?? Ugh!

ods pdf file=pdffile notoc pgnrestart=yes??? ;
proc print ....

proc print ....

ods pdf close;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Well it's not THAT horrible:
[pre]
options nodate number pageno=1;
ods pdf file='c:\temp\pageno.pdf';

proc print data=sashelp.shoes(obs=100);
title 'shoes';
run;

options pageno = 10;
proc print data=sashelp.class;
title 'class';
run;

options pageno=1;
proc print data=sashelp.prdsale(obs=25);
title 'prdsale';
run;
ods pdf close;
[/pre]

PAGENO is a system option that applies to both LISTING and PRINTER family destinations. So if there WAS some option that worked just for PDF, there would still have to be an option that worked for LISTING too. So why not make PDF use the PAGENO option that was already there?

cynthia

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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