SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 48546: Use PROC GREPLAY to simplify the table of contents when writing graphics output to a PDF file

DetailsCodeResultsAboutRate It
When using multiple SAS/GRAPH® procedures to write multiple graphs to a single PDF file, the default table of contents can get quite busy and complex. You can use the GREPLAY procedure to simply the table of contents.

The sample code on the Full Code tab first uses multiple PROC GCHART steps to write multiple graphs to the default graphics catalog of WORK.GSEG. The DESCRIPTION= option is used in each VBAR statement to modify the description of each graph.

In the final step in the code, a single PROC GREPLAY step is used to replay all of the graphs in the WORK.GSEG catalog to the PDF file. The sample code uses the ODS PROCLABEL statement before the PROC GREPLAY step to modify the procedure description that appears at the top of the table of contents.

Note that this technique can also be used when using SAS/GRAPH with the ODS HTML statement when using the BODY=, FRAME=, and CONTENTS= options.


These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.