SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 35375: How to append to a PDF file created by ODS

DetailsCodeAboutRate It

It is not currently possible to append to a PDF file that was created by ODS from within SAS®. However, this sample illustrates two methods that enable you to combine multiple tables in a PDF file using SAS.

The first code sample (Method 1) on the Full Code tab shows how to use multiple PDF instances to route to more than one PDF file at a time. This results in four files: COMBINED.PDF contains three PROC REPORT tables, while A.PDF, B.PDF, and C.PDF each contain the results from single PROC REPORT steps. Documentation showing how to open multiple PDF instances is available here.

The second code sample (Method 2) on the Full Code tab shows how to use ODS DOCUMENT to save each PROC REPORT table's output into separate document item stores in a permanent SAS library. The PROC DOCUMENT syntax shows how those REPORT tables can be replayed into a single PDF file using the REPLAY statement. Reference and links to the SAS online documentation discussing the ODS DOCUMENT and PROC DOCUMENT are available here.

These examples might prevent the need for appending to PDF files outside of SAS.

Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows 2000 Professional9.1 TS1M0
Microsoft Windows 2000 Server9.1 TS1M0
Microsoft Windows 2000 Datacenter Server9.1 TS1M0
Microsoft Windows 2000 Advanced Server9.1 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.1 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.1 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M0
z/OS9.1 TS1M0
Microsoft Windows NT Workstation9.1 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M0
Microsoft Windows XP Professional9.1 TS1M0
64-bit Enabled AIX9.1 TS1M0
64-bit Enabled HP-UX9.1 TS1M0
64-bit Enabled Solaris9.1 TS1M0
HP-UX IPF9.1 TS1M0
Linux9.1 TS1M0
OpenVMS Alpha9.1 TS1M0
Tru64 UNIX9.1 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.