Combining Graphs with Text Output

With ODS, it is possible to combine the output from a number of procedures into a single output file. This means that you can create an HTML page with a table from PROC FREQ and a bar chart from PROC GCHART. In HTML, because there are no page breaks, the output appears to be on the same page. However, there are still large gaps between the procedures.

If you'd like to integrate your graphs and tabular output, there is a trick you can use to embed a graph in a row of a PROC REPORT table. The technique is simple. First, you need to create your graph and save it in a SAS catalog. The following code creates a bar chart called SalesBar and saves it in the WORK library under the catalog name CandyBarChart.

GOPTIONS ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.