The REXX tool adapter must return both a return code, and, if modeled, output parameters. As the REXX procedure is called up as a sub-routine from the client application, the output parameters will also be transferred to the client application via the EXIT statement, in addition to the return code. The modeled tool descriptor defines whether separators should be used between every two parameters for the output parameters.
The return must take the following form:
EXIT returncode outparmlist
There must be a space between the numerical return code and the parameter list.
Example 1:
/* successful tool execution with a blank separated output parameter list */ outparm = 'PARM1 PARM2 PARM3' exitrc = 0 Exit exitrc outparm
Example 2:
/* successful tool execution with a comma separated output parameter list */ outparm = 'PARM1,PARM2,PARM3' exitrc = 0 Exit exitrc outparm