RETURN [value] This statement returns control to the most recent caller, optionally returning a value to the caller. All current DO and SELECT structures are exited and, if appropriate, the current variables are deleted and the caller's variables are reinstated. If the caller was a function call or a CALL statement, the value may be any string which is passed to the caller in the manner described above. If the caller was a function call, the return value must be given or an error results. On return from a condition handler, the result is ignored. If the caller was a shell (that is, no CALL statement or function call is currently active), then the RETURN statement exits from the REXX interpreter. The return value need not be given, but if it is specified it must be an integer, which is returned to the shell as an exit status.