Coding a NAK message to retain message, but end RESUME TPIPE call

To code a NAK message to direct OTMA to keep the rejected synchronous callout message on the tpipe queue, but end the RESUME TPIPE call:

Specify the following field values in the IRM of the NAK message:
  • IRM_F4 = N
  • IRM_F0 = X'20' (IRM_F0_SYNCNAK)

Upon receiving the NAK message, the RESUME TPIPE call ends, but OTMA keeps the synchronous callout request message on the tpipe queue. The rejected synchronous callout request message can then be retrieved by another RESUME TPIPE call, if the call is received by OTMA before the callout request times out.

If the NAK is for an asynchronous output message, OTMA places the message back on the hold queue and terminates the RESUME TPIPE call.