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 it is invoked, then 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 (due to an earlier WAITREQ command) then the command string is only placed in the REXX variable REQUEST.

Note: Command programs written in REXX can easily 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 section C2S for more information on the C2S command and section S2C for more information on the S2C command.

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


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