Example 1

For example, enter the following command:


The data returned will be:



-QTY 2 required two message units to be retrieved from the queue. The first message on the queue is PhysMess01. This message does not belong to a group and is returned as a single message. It contributes to one unit in the -QTY 2 value.

The next message on the queue is PhysMess02. This message belongs to a complete group with the group id "1". The adapter retrieves the whole group (messages PhysMess02, PhysMess03 and PhysMess05) and returns them as a chunk of data that contributes to the second unit in the -QTY 2 adapter command.

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