Multiple choice technology mainframe

When a RETURN clause is used in a subroutine, a value can be passed back to the calling EXEC. Which statements are correct?

  1. This value is stored in the system variable RESULT.

  2. This value is stored in the system variable RC.

  3. This value can be alphanumeric.

  4. This value must be numeric.

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

In REXX, a subroutine returns a value using the RETURN clause, which is automatically saved in the special variable RESULT. This returned value is a character string and can be alphanumeric.