UNIX systems and Windows systems
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 qmanagername
- amqsgbrc myqueue qmanagername
- amq0gbr0 myqueue
where 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 queueOnly the first 50 characters of each message are displayed, followed by - - - truncated when this is the case.
Parent topic:
The Browse sample programs
fg17240_