MDMT (10-digit signed integer)

Message type.

This indicates the type of the message. Message types are grouped as follows:

MTSFST

Lowest value for system-defined message types.

MTSLST

Highest value for system-defined message types.

The following values are currently defined within the system range:

MTDGRM

Message not requiring a reply.

The message is one that does not require a reply.

MTRQST

Message requiring a reply.

The message is one that requires a reply.

The name of the queue to which the reply should be sent must be specified in the MDRQ field. The MDREP field indicates how the MDMID and MDCID of the reply are to be set.

MTRPLY

Reply to an earlier request message.

The message is the reply to an earlier request message (MTRQST). The message should be sent to the queue indicated by the MDRQ field of the request message. The MDREP field of the request should be used to control how the MDMID and MDCID of the reply are set.

Note:
The queue manager does not enforce the request-reply relationship; this is an application responsibility.

MTRPRT

Report message.

The message is reporting on some expected or unexpected occurrence, usually related to some other message (for example, a request message was received which contained data that was not valid). The message should be sent to the queue indicated by the MDRQ field of the message descriptor of the original message. The MDFB field should be set to indicate the nature of the report. The MDREP field of the original message can be used to control how the MDMID and MDCID of the report message should be set.

Report messages generated by the queue manager or message channel agent are always sent to the MDRQ queue, with the MDFB and MDCID fields set as described above.

Other values within the system range may be defined in future versions of the MQI, and are accepted by the MQPUT and MQPUT1 calls without error.

Application-defined values can also be used. They must be within the following range:

MTAFST

Lowest value for application-defined message types.

MTALST

Highest value for application-defined message types.

For the MQPUT and MQPUT1 calls, the MDMT value must be within either the system-defined range or the application-defined range; if it is not, the call fails with reason code RC2029.

This is an output field for the MQGET call, and an input field for MQPUT and MQPUT1 calls. The initial value of this field is MTDGRM.