Multiple choice technology mainframe

What is the REXX instruction used to pass back the control to the caller of the subroutine or a fuction?

  1. EXIT

  2. RETURN

  3. ITERATE

  4. SIGNAL

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In REXX, the RETURN instruction is used to exit a subroutine or function and return control to the caller. EXIT terminates the entire program, ITERATE continues a loop iteration, and SIGNAL transfers control to a labeled statement. RETURN is specifically designed for subroutine/function exit.

AI explanation

In REXX, the RETURN instruction ends execution of the current subroutine or function and passes control (and optionally a value) back to whatever code invoked it. EXIT instead terminates the entire REXX program, SIGNAL transfers control unconditionally to a label (like a goto), and ITERATE moves to the next iteration of a loop — none of those return control specifically to a caller.