Command arguments passed to REXX programs

When a REXX/CICS command is written in REXX and that command is used, the REXX program (defined by DEFCMD or DEFSCMD) is either invoked or awakened (from a WAITREQ induced sleep).

If the program is invoked, the command string is passed as an argument to the exec. Also, if it is invoked, the very first WAITREQ command issued (if any) falls through immediately, with the command string being placed in the REXX variable REQUEST. If the REXX exec was already started earlier and waiting for a request (because of an earlier WAITREQ command), the command string is only placed in the REXX variable REQUEST.

Note: Command programs written in REXX can get and set the contents of REXX variables in the REXX exec that caused them to be invoked, by using the C2S and S2C commands. See C2S and S2C for more information.