Coding a NAK message to discard a message, but keep a connection

To code a NAK message to direct OTMA to discard the rejected synchronous callout message, but keep the RESUME TPIPE call to retrieve other synchronous callout request messages:

Procedure

  1. Specify the following field values in the IRM of the NAK message:
    • IRM_F4 = N
    • IRM_F3 = X'08' (IRM_F3_REROUT)
  2. Optional: Include an extended error code by specifying the following:
    • IRM_F0 = X'10'
    • IRM_NAK_RSNCDE = A two-byte hexadecimal extended error code

    The extended error code is returned to the IMS application in the AIBERRXT field of the AIB of the ICAL call.

Upon receiving this NAK message, the IMS application program receives a return code of X'100' and a reason code of X'108'.

If the NAK is for an asynchronous output message, the asynchronous output is returned to the reroute tpipe hold queue.