Home

 

MsgSeqNumber (MQLONG)

This is the sequence number of a logical message within a group.Sequence numbers start at 1, and increase by 1 for each new logical message in the group, up to a maximum of 999 999 999. A physical message that is not in a group has a sequence number of 1.

The application does not have to set this field on the MQPUT or MQGET call if:

These are the recommended ways of using these calls for messages that are not report messages. However, if the application requires more control, or the call is MQPUT1, the application must ensure that MsgSeqNumber is set to an appropriate value.

On input to the MQPUT and MQPUT1 calls, the queue manager uses the value described in Table 53. On output from the MQPUT and MQPUT1 calls, the queue manager sets this field to the value that was sent with the message.

On input to the MQGET call, the queue manager uses the value shown in Table 38. On output from the MQGET call, the queue manager sets this field to the value for the message retrieved.

The initial value of this field is one. This field is ignored if Vis less than MQMD_VERSION_2.



 

Home