BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have created a PDF, using a number of Proc reports . Using proclabel, I have created a TOC with all of the correct titles but I also want to print the TOC at the begining of the report, with page nos, as it is normally distributed as a printed item.

Can anyone help?
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
hi:
In SAS 9, you have the CONTENTS= option:
[pre]
ods pdf file='xyz.pdf' contents=yes;
** proc report 1;
** proc report 2;
** proc report 3;
ods pdf close;
[/pre]

cynthia
deleted_user
Not applicable
This gives a TOC with links on the electronic document but it does not form part of the doc when it is printed.
Cynthia_sas
SAS Super FREQ
Hi:
That is very odd. When I run the code below, and then print the resulting document, I do -get- a separate TOC as the first page when I print -- in both 9.1 and 9.2.

I suggest you contact Tech Support on this issue.

cynthia
[pre]
ods pdf file='c:\temp\xyz.pdf' contents=yes;

proc report data=sashelp.class (obs=5) nowd;
run;

proc report data=sashelp.class(obs=5) nowd;
run;

proc report data=sashelp.shoes(obs=50) nowd;
run;

proc report data=sashelp.class(obs=5) nowd;
run;

ods pdf close;
[/pre]
deleted_user
Not applicable
Thanks for that - I had the option in the wrong place...

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
  • 4 replies
  • 993 views
  • 0 likes
  • 2 in conversation