You can use RUN-group processing
with the GAREABAR, GBARLINE, GCHART, GKPI, GMAP, GPLOT, GRADAR, GREPLAY,
GSLIDE, and GTILE procedures to produce multiple graphs without restarting
the procedure every time.
To use RUN-group processing,
you start the procedure and then submit multiple RUN-groups. A
RUN-group is a group of statements that contains at
least one action statement and ends with a RUN statement. The procedure
can contain other SAS statements such as AXIS, BY, GOPTIONS, LEGEND,
TITLE, or WHERE. As long as you do not terminate the procedure, it
remains active and you do not need to resubmit the PROC statement.
To end RUN-group processing
and terminate the procedure, submit a QUIT or RUN CANCEL statement,
or start a new procedure. If you do not submit a QUIT or RUN CANCEL
statement,
SAS/GRAPH does
not terminate RUN-group processing until it reaches another step boundary.
Note: When using
SAS/GRAPH with the ODS statement, it is best
to use a QUIT statement after each procedure that uses RUN-group processing.
Do this rather than relying on a new procedure to end the processing.
Running too many procedures without an intervening QUIT statement
can use up too much memory. Also, note that failing to submit a QUIT
statement before submitting an ODS CLOSE statement results in the
process memory not being freed at all.