PURPOSE: This statement/command saves the current settings of all the ENABLE/DISABLE options. ENABLE TO assigns a unique non-zero integer identifier to the current settings of the ENABLE/DISABLE options. The user can apply this identifier later in an ENABLE FROM statement/ command to restore the settings without keeping track of which ones were changed. The saved settings stay through the entire ACCENT R session. ENABLE TO can be used in a Command Module (CM), a Process Module (PM), or at the command level. There is no limit to the number of sets of options that can be saved.
If saving the identifier globally, the saved settings can always be restored. EXAMPLE: When the ENABLE TO statement in a PM is executed and it saves the identifier in a Global Storage (GS) field, the settings can be restored in another PM, CM, or at command level.
ENABLE TO integer_field
integer_field |
specifies a user-defined field, a modifiable system field, or a GS field. After execution of this statement/ command, this integer field contains the identifier of the settings. |
ENABLE TO ORIGINAL_SETTING
DISABLE ERROR MESSAGES, WARNING MESSAGES, AUX MESSAGES
…
ENABLE EUROPEAN DATE
…
ENABLE FROM ORIGINAL_SETTING
This example saves the original settings of the ENABLE/DISABLE options, changes some of the settings, then restores the original setting.