Receiving Information from a Subroutine or Function

About this task

Although a subroutine or function can receive up to 20 arguments, it can specify only one expression on the RETURN instruction. That expression can be:
  • A number
    RETURN 55
  • One or more variables whose values are substituted (or their names if no values have been assigned).
    RETURN value1 value2 value3
  • A literal string
    RETURN 'Work complete.'
  • An arithmetic, comparison, or logical expression whose value is substituted.
    RETURN 5 * number

Task Task

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/receive.html