z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Return codes

z/OS TSO/E REXX Reference
SA32-0972-00

Table 1 shows the return codes for the host command environment routine. These are the return codes from the replaceable routine itself, not from the command that the routine processed. The command's return code is passed back in parameter 5. See Conditions and condition traps for information about ERROR and FAILURE conditions and condition traps.

Table 1. Return codes for the host command environment routine
Return code Description
Less than or equal to -13 If the value of the return code is -13 or less than -13, the routine requested that the HOSTFAIL flag be turned on. This is a TRACE NEGATIVE condition and a FAILURE condition is trapped in the exec.
-1 – -12 If the value of the return code is from -1 to -12 inclusive, the routine requested that the HOSTERR flag be turned on. This is a TRACE ERROR condition and an ERROR condition is trapped in the exec.
0 No error condition was indicated by the routine. No error conditions are trapped (for example, to indicate a TRACE condition).
1 – 12 If the value of the return code is 1 - 12 inclusive, the routine requested that the HOSTERR flag be turned on. This is a TRACE ERROR condition and an ERROR condition is trapped in the exec.
Greater than or equal to 13 If the value of the return code is 13 or greater than 13, the routine requested that the HOSTFAIL flag be turned on. This is a TRACE NEGATIVE condition and a FAILURE condition is trapped in the exec.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014