The Browser sample program

 

The Browser sample program is written as a utility, not just to demonstrate a technique. It reads and writes both the message descriptor and the message content fields of all the messages on a queue. See Features demonstrated in the sample programs for the names of these programs.

This program takes 2 parameters:

  1. The name of the source queue

  2. The name of the queue manager

Both input parameters for this program are mandatory. For example, enter one of the following:

where myqueue is the name of the queue on which the messages are going to be browsed, and qmanagername is the queue manager that owns myqueue.

It reads each message from the queue and writes the following to stdout:

The program is restricted to printing the first 32767 characters of the message, and fails with the reason truncated msg if a longer message is read.

See the WebSphere MQ System Administration Guide or the System Management Guide for your platform, for examples of the output from this utility.

 

Parent topic:

Sample programs (all platforms except z/OS)


fg17270_