MsgUserDataPtr (MQPTR)
This field specifies the address of the first MsgUserData field.
If MsgExitsDefined is greater than zero, this address is the address of the list of user data items for each channel message exit in the chain.
Each user data item is in a field of length ExitDataLength, padded to the right with blanks. There are MsgExitsDefined fields adjoining one another - one for each exit. If the number of user data items defined is less than the number of exit names, undefined user data items are set to blanks. Conversely, if the number of user data items defined is greater than the number of exit names, the excess user data items are ignored and not presented to the exit.
Any changes made to these values by an exit are preserved. This allows one exit to pass information to another exit. No validation is carried out on any changes so, for example, binary data can be written to these fields if required.
If MsgExitsDefined is zero, this field is the null pointer.
On platforms where the programming language does not support the pointer data type, this field is declared as a byte string of the appropriate length.
This is an input field to the exit. The field is not present if Version is less than MQCD_VERSION_4.
Parent topic: Fields