What are Subroutines and Functions?

Subroutines and functions are routines made up of a sequence of instructions that can receive data, process it, and return a value. The routines can be:
Internal
The routine is within the current program, marked by a label, and only that program uses the routine.
External
A REXX subroutine that exists as a separate file.
In many aspects, subroutines and functions are the same. However, they are different in a few major aspects, such as how to call them and the way they return values.

Concept Concept

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


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