On the WebSphere MQ client workstation

  1. Change to the directory containing the sample programs, and then enter the following command:
    amqsgetc QUEUE1 qmgr

    Where qmgr is the name of the queue manager on the server.

  2. The message on the queue is removed from the queue and displayed.