SUBROUTINES FUNCTIONS
Can be internal or external
Internal
– Can pass information by using common variables
– Can protect variables with the PROCEDURE
instruction
– Can pass information by using arguments
External
– Must pass information by using arguments
– Can use the ARG instruction or the ARG built-in
function to receive arguments
Can be internal or external
Internal
– Can pass information by using common variables
– Can protect variables with the PROCEDURE
instruction
– Can pass information by using arguments
External
– Must pass information by using arguments
– Can use the ARG instruction or the ARG built-in
function to receive arguments
Uses the RETURN instruction to return to the caller. Uses the RETURN instruction to return to the caller.
Might return a value to the caller. Must return a value to the caller.
Returns a value by placing it into the REXX special
variable RESULT.
Returns a value by replacing the function call with the
value.
Summary of Subroutines and Functions
84
z/OS V1R1.0 TSO/E REXX User’s Guide