After you create your
ODS document, use the DOCUMENT procedure to replay it. You can replay
all of the graphs in your document or only those that you select.
To see a list of the graphs in an ODS document, use a LIST statement
with the DOCUMENT procedure. Here is an example that shows how to
list the graphs in Mygraphs.Mydocs.
proc document name=Mygraphs.Mydocs;
list / levels=all;
run;
quit;
A list of the graphs
in the document is displayed in the
Output window as shown in the following figure.
In this example, the
graphs are listed in the order in which they were inserted into the
catalog. To replay individual graphs, you must know the path to the
graphs, which is shown in the Path column.
-
Close the ODS HTML destination.
-
Open the ODS destinations
that you want to send the output to.
-
Use the DEVICE= graphics
option to specify the graphics output device that you want to use
to generate the graphs.
-
Run the DOCUMENT procedure
with one or more REPLAY statements to replay your graphs. Specify
the path to each graph, and use the DEST= option to specify the output
destination.
Note: If you want to display all
of the graphs, do not specify a path.
-
Close the ODS destinations
that you opened in step 2.
-
Open the ODS HTML destination.
Here is an example that
shows how to play the first and the third graphs in the Mygraphs.Mydocs
catalog to the ODS RTF destination using the ACTIVEX device.
goptions reset=all device=activex;
ods html close;
ods rtf style=money;
proc document name=Mygraphs.Mydocs;
replay \Gchart#1\Gchart#1 / levels=all dest=rtf;
replay \Gchart#1\Gchart#3 / levels=all dest=rtf;
run;
quit;
ods rtf close;
ods html;
To replay all of the
graphs in the catalog, use one REPLAY statement that does not specify
a path. For example:
proc document name=Mygraphs.Mydocs;
replay / levels=all dest=rtf;
run;
For more information
about using the ODS DOCUMENT destination and the DOCUMENT procedure,
see
SAS Output Delivery System: User's Guide.