Hello Everybody,
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";
run;
/* 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;
run;
ods pdf(b) close;
ods pdf(c) file="c.pdf" ;
proc report nowd data=sashelp.class;
title "In COMBINED.pdf and C.pdf";
run;
ods pdf(c) close;
ods pdf close;
which is from
http://support.sas.com/kb/35/375.html
I am able to append the pdf files with the no problem but TOC(Table of contents) looks different then what it was for individual PDF. I am wondering what am I missing here.
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.
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 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.