Understanding how it all works

In outline, the procedure for issuing commands from an application program is quite simple:

  1. You build a WebSphere MQ command into a type of WebSphere MQ message called a request message. The command can be in MQSC or PCF format.

  2. You put (MQPUT) this message onto a special queue called the system-command input queue. The WebSphere MQ command processor runs the command.

  3. You retrieve (MQGET) the results of the command as reply messages on the reply-to queue. These messages contain the user messages that we need to determine whether your command was successful and, if it was, what the results were.

Then it is up to your application program to process the results.