GOPTIONS statements are global and can be located
anywhere in your SAS program. However, for the graphics options to
affect the output from a procedure, the GOPTIONS statement must execute
before the procedure.
With the exception of
the RESET= option, graphics options can be listed in any order in
a GOPTIONS statement. The RESET= option should be the first option
in the GOPTIONS statement.
A graphics option remains
in effect until you specify the option in another GOPTIONS statement,
use the RESET= option to reset the values, or end the SAS session.
When a session ends, the values of the graphics options return to
their default values.
Graphics options are
additive. That is, the value of a graphics option remains in effect
until the graphics option is explicitly changed or reset or until
your SAS session ends. Graphics options remain in effect even after
you submit additional GOPTIONS statements specifying different options.
To reset an individual option to its default value, submit the option
without a value (a null graphics option.) You can use a comma (but
it is not required) to separate a null graphics option from the next
one. For example, this GOPTIONS statement sets the values for the
background color, the text height, and the text font:
goptions cback=blue htext=6 pct ftext=albany;
To reset only the background
color specification to the default and keep the remaining values,
use this GOPTIONS statement:
goptions cback=;
To reset all graphic
options to their default values, specify RESET=GOPTIONS:
goptions reset=goptions;
Alternatively, you can
use RESET=ALL, but it also cancels any global statement definitions
in addition to resetting all graphics options to default values.