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

Your function or subroutine code must return a return code in register 15. Table 1 shows the return codes.

Table 1. Return codes from function or subroutine code (in register 15)
Return code Description
0 Function or subroutine code processing was successful.

If the called routine is a function, the function must return a value in the EVDATA field of the evaluation block. The value replaces the function call. If the function does not return a result in the evaluation block, a syntax error occurs with error number 44.

If the called routine is a subroutine, the subroutine can optionally return a value in the EVDATA field of the evaluation block. The REXX special variable RESULT is set to the returned value.

Non-zero Function or subroutine code processing was not successful. The language processor stops processing the REXX exec that called your function or subroutine with an error code of 40, unless you trap the error with a SYNTAX trap.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014