SET OPTIONS command

The SET OPTIONS command specifies procedure execution options.

Syntax

>>-- SET OPTIONS --------------------------------------------<<
                    ( +- STOPONERROR = YES|NO --------------+
                      +- SUPPRESSMESSAGES=ALL|INFORM|ERROR -+

Parameters

Parameter Description
STOPONERROR
Specifies whether the procedure stops running when an error occurs. Valid values are as follows:
  • YES

    The procedure stops running when an error occurs.

  • NO

    The procedure does not stop running when an error occurs.

The processing associated with this parameter is similar to the processing associated with DSQQW_PROC_FAIL_ON_ERROR. However, the value set for STOPONERROR takes precedent over the values set for DSQQW_PROC_FAIL_ON_ERROR.

If you do not specify a value for STOPONERROR, the value for DSQQW_PROC_FAIL_ON_ERROR determines whether processing stops or continues when an error occurs.

If you do specify a value for STOPONERROR, the value for DSQQW_PROC_FAIL_ON_ERROR is ignored.

SUPPRESSMESSAGES
Specifies the types of messages to suppress while the procedure is running. Valid values are as follows:
  • ALL

    Suppresses all message dialogs when the procedure is running.

  • INFORM

    Suppresses information (confirmation) message dialogs when the procedure is running.

  • ERROR

    Suppresses error message dialogs when the procedure is running.

Example

SET OPTIONS (STOPONERROR=YES SUPPRESSMESSAGES=ALL