There are two ways to set the value of a target element to a
WebSphere MQ constant, depending on whether the target
element has an entry in the Map Script column of the
Message
Mapping editor Spreadsheet pane:
The following examples demonstrate how to enter a
WebSphere MQ constant
in the Edit pane:
$mq:MQ_MSG_HEADER_LENGTH
$mq:MQMD_CURRENT_VERSION
When
the map is saved a warning message is displayed if the expression entered
for the WebSphere MQ constant is incorrect, for
example the constant is not recognized. This is an example of the warning
message: The target "$target/purchaseOrder/comment" is not referencing
a valid variable.
Content Assist () provides a list of the
WebSphere MQ constants available.
- Select $mq: ( MQ constants )
- Select again to display a list of the available constants.
WebSphere MQ constants that can be used
as values for target elements, grouped by the parameter or field to which
they relate, can be found in the
WebSphere MQ Constants book.