Setting a Variable to Its Default Value (RESET Command)

Use a RESET command to reset the value of a user-defined variable, or one or all members of a user-defined variable group, to their default value. See Section 3. The specified variable group member is automatically created if it does not exist when a RESET command refers to it.

Format

RESET variable-name

or

RESET variable-group-name:member-name

where:

variable-name

is the name of a variable previously defined using a DEFINE VARIABLE command. See Section 3.

variable-group-name

is the name of a variable group previously defined using a DEFINE VARIABLE command.

member-name

is the unique name of the member. You can specify the member name using a variable reference, as a fixed string constant, or as the predefined variable _ALL. A fixed string constant is a set of characters enclosed in quotation marks (for example, "ABC") and cannot include variable substitution (for example, "FROM \HOSTID\”). _ALL refers to all currently existing members of the variable group.

If the member-name does not exist, the member is created automatically and a warning message is produced.

Examples

The following example resets the string variable DiskMessage to the default value specified when the variable was defined:

RESET DiskMessage

The following example resets all members in the variable group DiskErrors to the default value specified when the variable group was defined:

RESET DiskErrors:_ALL