The Browse sample programs for AIX, Linux, and Windows
Consider using this topic when learning about Browse sample programs on AIX®, Linux®, and Windows.
The C version of the program takes 2 parameters
- The name of the source queue (necessary)
- The name of the queue manager (optional)
If a queue manager is not specified, it connects to the default one. For example, enter one of
the following:
amqsgbr myqueue qmanagernameamqsgbrc myqueue qmanagernameamq0gbr0 myqueue
myqueue is the name of the queue that the messages will be viewed from,
and qmanagername is the queue manager that owns myqueue. If you omit the qmanagername, when running the C sample, it assumes that the
default queue manager owns the queue.
The COBOL version does not have any parameters. It connects to the default queue manager and when
you run it you are prompted:
Please enter the name of the target queue
Only the first 50 characters of each message are displayed, followed by - - -
truncated when this is the case.