You can use the ODS
PDF destination, or the ODS LISTING destination with the DEVICE=PDFA
graphics option, to write your graph output to an archivable PDF file.
By default, the ODS PDF destination writes your output to a PDF Version
1.4 file. To write your graphs to a PDF file that can be archived,
add the PRINTER=PDFA option to your ODS statement. The PDFA Universal
Printer shortcut device creates a PDF file that is compliant with
PDF/A-1b standards and can be archived. See Using Graphics Devices for information
about the PDFA Universal Printer shortcut device.
You can also use the
ODS LISTING destination with the DEVICE=PDFA graphics option to create
an archivable PDF file. The following example writes a simple bar
chart of electrical power revenue and generation sources to an archivable
PDF file named useprev.pdf.
/* Create the output file reference */
filename pdfout "useprev.pdf";
/* Specify the PDFA device and the output filename */
goptions reset=all device=pdfa border gsfname=pdfout;
/* Close the ODS HTML destination */
ods html close;
/* Open the LISTING destination and specify the style */
ods listing style=statistical;
/* Generate the graph */
title "US Electric Power - Revenue and Generation Sources";
proc gchart data=sashelp.electric (where=(year >= 2000)) ;
vbar year / discrete sumvar=Revenue subgroup=Customer;
run;
quit;
/* Close ODS LISTING and open ODS HTML */
ods listing close;
ods html;