The DATA Step Graphics
Interface (DSGI) enables you to create graphics output within the
DATA step or from within a SAS Component Language ( SCL) application.
Through DSGI, you can call the graphics routines used by
SAS/GRAPH software to generate a custom graph,
or to add features to an existing graph. You can use DSGI to write
a custom graphics application in conjunction with all the power of
the programming statements accessible by the DATA step.
DSGI provides many of the same
features as the Annotate facility, but it also has many advantages
over the Annotate facility.
-
You can use DSGI functions and
routines through SCL
-
You can save disk space. DSGI
graphics can be generated through the DATA step without creating an
output data set. The graphics output is stored as a catalog entry
in the catalog that you select, and can be displayed after the DATA
step is submitted.
-
DSGI generates graphics faster
than the Annotate facility. With the Annotate facility, you create
a data set and then submit a PROC step to display the graphics output.
In DSGI, you eliminate the PROC step because the graphics output is
generated after the DATA step.
-
DSGI supports viewports and windows,
which enable you to specify the dimensions, position, and scale of
the graphics output. You can include multiple graphs in the same
graphics output.
Consider using the Annotate
facility for enhancing procedure output. and using DSGI for creating
custom graphics without using a graphics procedure.
DSGI is based on the
Graphics Kernel System (GKS) standard, although it does not follow
a strict interpretation, nor is it implemented on a particular level
of GKS. GKS was used to provide a recognizable interface to the user.
Because of its modularity, the standard allows for enhancements to
DSGI without the side effect of converting programs between versions
of
SAS/GRAPH software.
The concepts used to
create graphics output with DSGI are explained. An overview of the
functions and routines used in DSGI are provided. For complete details
of each function and routine, see
The DSGI Function and Routine Dictionaries.