Background
One of the greatest strengths of REXX is its extendibility. You can write your own external functions, subroutines, or commands to extend the capabilities of the REXX language. Because of this, one of the natural uses for REXX is as an Application Integration platform. REXX/CICS provides you the ability to seamlessly integrate your Line Of Business (LOB) application facilities, REXX language facilities, CICS system facilities, and various software products into an integrated software platform.
- REXX External Functions (or subroutines)
- REXX Commands (sometimes called subcommands).
x = ARRYSORT(STEM1.)
'ARRYSORT STEM1.'
REXX external functions are traditionally used to extend the capabilities of the REXX language, whereas REXX commands are traditionally used to interface to outside applications, products or system facilities. However, either method is capable of being used either way.
- Functions always return a result, commands do not.
- Functions raise an error condition, commands always set a return code.