You must create editable
graph output before you can use the ODS Graphics Editor to edit the
graph output. You can create editable graph output with a wide variety
of SAS procedures.
To enable the creation
of an editable graph, do the following in your SAS program:
-
Make sure either the LISTING or
the HTML ODS destination is open. If both are closed, no editable
graph can be produced. Both can be open. Other destinations can be
open as well.
-
Add the SGE=ON option to the ODS
destination statement.
Here is the general
form of the SGE option:
Here is an example
of its usage in an ODS LISTING statement:
-
If needed, activate the ODS Graphics
environment with the ODS GRAPHICS ON statement. This is not required
for the SAS ODS Graphics procedures (SGDESIGN, SGPLOT, SGPANEL, SGSCATTER,
or SGRENDER). In addition, SAS procedures that support ODS produce
ODS Graphics output by default when they are executed in the SAS Windowing
Environment.
For more information,
see “Procedures That Support ODS Graphics” in
SAS/STAT 9.3 User’s Guide.
When you execute the
SAS program, SAS creates an ODS Graphics Editor (SGE) file along with
the graph image file. You can then open the SGE file from the
Results window.
For details, see Open an ODS Graph for Editing.
If you later change
and rerun the SAS program, SAS creates a new SGE file. The original
SGE file remains in the SAS
Results window.
You can create editable
graphs for multiple ODS destinations. Each editable graph has a unique
name based on the name of the corresponding PNG file. For example,
if you specify SGE=ON for the LISTING, PDF, and HTML destinations,
your editable graphs would have names such as SGPlot.sge, SGPlot_PDF.sge,
and SGPlot_HTML.sge.
To disable the creation
of editable graphs, add the SGE=OFF option to the ODS destination.
For example, you might submit the following code in your program:
Alternatively, you can
close and then reopen the ODS destination.