Complete message (-CMSG)

Use the Complete Message adapter command (-CMSG) for data sources to specify retrieval of complete logical messages within group messages.

-CMSG

The Complete Message adapter command (-CMSG) specifies that only a complete logical message can be returned by the MQGET call. If the logical message is segmented, the queue manager reassembles the segments and returns the complete logical message.

The Complete Message adapter command (-CMSG) is the only adapter command that causes the queue manager to reassemble message segments. Using the Complete Message adapter command (-CMSG) directs the messaging adapter to set the MQGMO_COMPLETE_MSG flag in the MQGMO.Options field.

If the queue contains segmented messages with some of the segments missing (perhaps the messages were delayed in the network and have not yet arrived), use the Complete Message adapter command (-CMSG) to prevent retrieval of segments belonging to incomplete logical messages.

For information about incomplete message groups contributing to the size of CurrentQDepth, see "Incomplete message segments" .

The Complete Message adapter command (-CMSG) implies that all segments in a logical message must be available for retrieval. Therefore, it is not necessary to specify the Require All Segments adapter command (-ALLSEG).