OPTSAVE Procedure
PROC OPTSAVE Statement
Saves the current SAS system option settings in
the SAS registry or in a SAS data set.
Syntax
Summary of Optional Arguments
Save SAS system option settings to a registry key.
Save SAS system option settings to a SAS data set.
Optional Arguments
- KEY="SAS registry key"
- specifies the location
in the SAS registry of stored SAS system option settings. The registry
is retained in SASUSER. If SASUSER is not available, then the temporary
WORK library is used. For example, KEY="OPTIONS".
Restriction:“SAS registry key”
names cannot span multiple lines.
Requirements:Separate the names in a sequence of key names with a
backslash (\). Individual key names can contain any character except
a backslash.
The length of a key name cannot exceed 255 characters
(including the backslashes).
You must use quotation marks around the “SAS
registry key” name.
Tip:To specify a subkey, enter multiple key names starting
with the root key.
CAUTION:
If the key already
exists, it will be overwritten. If the specified key does not already
exist in the current SAS registry, then the key is automatically created
when option settings are saved in the SAS registry.
- OUT=libref.dataset
- specifies the names
of the library and data set where SAS system option settings are saved.
The SAS variable OPTNAME contains the character value of the SAS system
option name. The SAS variable OPTVALUE contains the character value
of the SAS system option setting.
Default:If you omit the OUT= and the KEY= options, the procedure
will use the default SAS library and data set. The default SAS library
is where the current user profile resides. Unless you specify a SAS
library, the default library is SASUSER. If SASUSER is in use by another
active SAS session, then the temporary WORK library is the default
location where the data set is saved. The default data set name is
MYOPTS.
CAUTION:
If the data set already
exists, it will be overwritten.
Copyright © SAS Institute Inc. All rights reserved.