
The alter qremote command can be used to alter a remote queue. In this example, the queue named QUEUE01 in the queue manage named MANAGER01 is updated to have a description of "Hello World".
AVOID TROUBLE
When a value is a string and contains one or more white spaces, the value must be wrapped in quotes. In this example, Hello World is wrapped in quotes.
echo "alter qremote (QUEUE01) DESCR ('Hello World')" | runmqsc MANAGER01
AVOID TROUBLE
When a value is an integer, the value must NOT be wrapped in quotes. In this example, 100 is not wrapped in quotes.
echo "alter qremote (QUEUE01) MAXDEPTH (100)" | runmqsc MANAGER01
The display queue or display qremote commands can be used to view the configuration of the queue, like this.
echo "display queue (QUEUE01) DESCR" | runmqsc MANAGER01
Following is an example of what will be displayed.
QUEUE(queue01) TYPE(QREMOTE)
DESCR (Hello World)
Alter multiple fields
In this example, both DESCR and MAXDEPTH are updated simultaneously.
echo "alter qremote (QUEUE01) DESCR ('Hello World') MAXDEPTH (100)" | runmqsc MANAGER01
Did you find this article helpful?
If so, consider buying me a coffee over at