Return codes

These return codes are possible if a panel is specified:

 0
Normal completion. The END command was entered from the selected menu.
 4
Normal completion. The RETURN command was entered or the EXIT option was specified from the selected menu or from some lower-level menu.
12
The specified panel could not be found.
16
Truncation error in storing the ZCMD or ZSEL variable.
20
Severe error.
Note: A return code of 0 is returned when the SELECT service has been coded with no other parameters.

These return codes are possible from a MODAL workstation command:

20
Parameter or syntax on SELECT service (all SELECTs) is not valid.
41
A null command was passed to the workstation.
42
ISPF was not able to start the command at the workstation.
43
Remote execution of commands was not allowed by the user.
OTHER
The return code from the workstation command + 100 if the return code from the workstation command was greater than 0.