The Browse sample programs for UNIX, Linux, and Windows

Consider using this topic when learning about Browse sample programs on UNIX, Linux, and Windows.

The C version of the program takes 2 parameters
  1. The name of the source queue (necessary)
  2. 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 we 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 we 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.

Parent topic: The Browse sample programs