I am using Below SAS code to combine my PDF files . I am using EG 7.1
/* Method 1 */
/* Turn off the Output window */
ods listing close;
/* Open two ODS PDF instances, one creating COMBINED_1.PDF, and the other creating A.PDF */
ods pdf file="combined_1.pdf";
ods pdf(a) file="a.pdf";
proc report nowd data=sashelp.class(obs=10);
title "In COMBINED.pdf and A.pdf";
/* Close A.PDF, but COMBINED.PDF remains open */
ods pdf(a) close;
ods pdf(b) file="b.pdf";
proc report nowd data=sashelp.vtable(obs=20);
title "In COMBINED.pdf and B.pdf";
column libname memname nobs nvar crdate;
ods pdf(b) close;
ods pdf(c) file="c.pdf" ;
proc report nowd data=sashelp.class;
title "In COMBINED.pdf and C.pdf";
ods pdf(c) close;
ods pdf close;
The SAS TOC generator only understands one document. If you want all of the elements in the TOC generated by SAS then you they all go within a single Ods PDF / ODS PDF Close sandwich.
If you also want separate documents either look into proc document to redirect already created output to additional documents or run that separately.
SAS INNOVATE 2024
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.