Writing programs containing IMS commands
An application program can build a WebSphere MQ message of the form LLZZ<command>, instead of a transaction, where <command> is of the form /DIS TRAN PART or /DIS POOL ALL. Most IMS™ commands can be issued in this way; see the IMS/ESA V6 OTMA Guide and Reference for details. The command output is received in the WebSphere MQ reply message in the text form as would be sent to a 3270 terminal for display.
OTMA has implemented a special form of the IMS display transaction command, which returns an architected form of the output. The exact format is defined in the IMS/ESA V6 OTMA Guide and Reference. To invoke this form from a WebSphere MQ message, build the message data as before, for example /DIS TRAN PART, and set the TranState field in the MQIIH to MQITS_ARCHITECTED. IMS processes the command, and returns the reply in the architected form. An architected response contains all the information that could be found in the text form of the output, and one additional piece of information: whether the transaction is defined as recoverable or non-recoverable.
Parent topic:
Writing your program
fg16030_