This is the type of application that put the message, and is part of the origin context of the message. For more information about message context, see Overview; also see the WebSphere MQ Application Programming Guide.
PutApplType can have one of the following standard types. You can also define your own types, but only with values in the range MQAT_USER_FIRST through MQAT_USER_LAST.
This is the default application type for the platform on which the application is running.
The following special value can also occur:
When a message is retrieved, PutApplType can be tested for this value to decide whether the message has context (it is recommended that PutApplType is never set to MQAT_NO_CONTEXT, by an application using MQPMO_SET_ALL_CONTEXT, if any of the other context fields are nonblank).
When the queue manager generates this information as a result of an application put, the field is set to a value that is determined by the environment. On i5/OS, it is set to MQAT_OS400; the queue manager never uses MQAT_CICS on i5/OS.
For the MQPUT and MQPUT1 calls, this is an input/output field if MQPMO_SET_ALL_CONTEXT is specified in the PutMsgOpts parameter. If MQPMO_SET_ALL_CONTEXT is not specified, this field is ignored on input and is an output-only field.
After the successful completion of an MQPUT or MQPUT1 call, this field contains the PutApplType that was transmitted with the message. If the message has no context, the field is set to MQAT_NO_CONTEXT.
This is an output field for the MQGET call. The initial value of this field is MQAT_NO_CONTEXT.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
js01338 |