Packet (-PKT)

Use the Packet adapter command (-PKT) for data targets to break output data into multiple messages and to put these messages on the target queue with the same message identifier.

-PKT packet_size
Option
Description
packet_size
The packet size must be specified in units of 1000 bytes with a minimum of one unit.

For example, to specify a packet size of 3000 bytes, the syntax would be:

-PKT 3

If one of the following conditions is met:

  • If the -HDR or -DH command is used on output, and the message header has the Version field set to a value of one (1).
  • If the Version 2 (-V2) command is used (which enforces the use of the Version 1 header from MQSeries® 2.x). For more information about this command, see "Version 2 (-V2)" .

The created physical messages will be independent logical messages that will have the same message id. These messages cannot be automatically reassembled on input, however, this can be achieved through the proper map design.

On the other hand, if BOTH of the following conditions are met:

  • If -HDR or -DH is used on output and if the message header has Version field set to a value of two (2).
  • If the Version 2 (-V2) command is omitted (which would enforce the use of Version 1 header from MQSeries® 2.x). For more information about this command, see "Version 2 (-V2)" .

The created physical messages will be message segments of the original message. The Offset property of the message will provide information about the relative position of each of the segments in the original message. In this case, -CMSG adapter command can be used on input to automatically reassemble the original message.

The Packet adapter command (-PKT) is ignored for a message source.