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


Return codes for the initialization and termination exits

z/OS TSO/E Customization
SA32-0976-00

Table 1 shows the return codes that the initialization and termination exits support.

Table 1. Return codes for the TSOLIB initialization and termination exits
Return code (decimal) Description
0 Exit processing was successful. TSOLIB processing continues.
12, 16 An error occurred in the exit. The TSOLIB command processor terminates processing.

If the exit uses return code 12, it can also pass back an exit reason code to the TSOLIB command processor. For more information, see the notes following this table and Exit reason code.

If your exit sets a return code of either 12 or 16, you should consider displaying an informational message to the user. You can use the PUTLINE service routine to issue an informational message. See for more information.

Note:
  1. If an exit returns an undefined return code, the TSOLIB command processor terminates without issuing an error message to the user.
  2. If an initialization or termination exit sets a reason code that has a key value of X'03', this reason code is used as the return code from the TSOLIB command. However, if both exits indicate that the reason code is to be used as the return code from the TSOLIB command, the reason code from the termination exit overrides that from the initialization exit.
  3. When requesting that the exit reason code be used as the return code from TSOLIB, you must insure that the reason code does not duplicate existing TSOLIB return codes.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014