Issuing commands and retrieving command responses (ICMD and RCMD calls)
ICMD issues an IMS command and retrieves the first command response segment if one exists. RCMD retrieves subsequent command response segments. When the response to an ICMD call results in a multi-segment message, you might want to retrieve all message segments.
If you need all message segments, you must issue RCMDs until all segments are retrieved before issuing another ICMD call. IMS discards all remaining message segments from the previous ICMD call when a new ICMD is issued from the same AO application.
Restriction: All messages
queued to an AO application by an AOIE type exit routine remain in
the IMS subsystem to which they
are queued. Only AO applications in the local subsystem can issue
a DL/I GMSG call to access the queued messages. Because these messages
are not written to a share-queue structure, applications on other IMS subsystems cannot access them.