Example 2

For example, enter the following command:

-QMN QMNAME1 -QN QUEUE1 -GRP2 -QTY 4

The data returned will be:

PhysMess01PhysMess02PhysMess03PhysMess05PhysMess04
PhysMess06PhysMess09PhysMess10PhysMess11PhysMess12

Explanation:

-QTY 4 required four message units to be retrieved from the queue. The adapter first retrieved PhysMess01, and then PhysMess02, PhysMess03 and PhysMess05, as in the previous example. After that, there are two more message units that need to be retrieved.

The third message unit is message PhysMess04. It is a non-group message, and the adapter retrieves it after retrieving the message group "1". Finally, the forth unit is message group "2" that consists of the following physical messages:

PhysMess06, PhysMess09, PhysMess10, PhysMess11 and PhysMess12

If -GRP2 adapter command was omitted, the returned data would be:

PhysMess01PhysMess02PhysMess03PhysMess04