Previous Topic: ArgumentsNext Topic: Default Behavior


Return Code

The following table gives a brief description of each of the return codes.

Return Code

Description

SrvrErrorExit.FAILEDDISPLAY

This return value causes the standard error report dialog to be displayed, with return to the previous window. The integer value is ‘3’.

SrvrErrorExit.FAILEDRESTART

This return value suppresses the standard error report and re-invokes the client procedure step that originated the dialog flow. In the case of a failing "procedure step usage," the parent procedure step is returned to at the statement immediately following the Use. In both cases, if failureCommand is set it is used as the system command when re-invoking or returning to the client procedure step. For flows designed to return the server's exit state to the client, the exit state set when re-invoking or returning to the client procedure step will be the last value set by the client. The integer value is ‘1’.

SrvrErrorExit.FAILEDTERMINATE

This return value will suppress the standard error report dialog, will not attempt to return to the client procedure step, and will redisplay the client window. The integer value is ‘2’.

SrvrErrorExit.FAILEDDISPLAYCUSTOM

This return value will causes a custom error report dialog to be displayed with NO FORMATTING. The dialog returns to the previous window as in previous releases. The integer value is ‘4’.