system-command input queue, system-command input, queues, remote queue manager, commands, WebSphere MQ commands" />
Opening the system-command input queue
Before we can open the system-command input queue, your application program must be connected to your queue manager. Use the MQI call MQCONN or MQCONNX to do this.
Then use the MQI call MQOPEN to open the system-command input queue. To use this call:
- Set the Options parameter to MQOO_OUTPUT
- Set the MQOD object descriptor fields as follows:
- ObjectType
- MQOT_Q (the object is a queue)
- ObjectName
- SYSTEM.COMMAND.INPUT
- ObjectQMgrName
- If you want to send your request messages to your local queue manager, leave this field blank. This means that your commands are processed locally.
If you want your WebSphere MQ commands to be processed on a remote queue manager, put its name here. You must also have the correct queues and links set up, as described in the WebSphere MQ Intercommunication manual.