The alter qlocal command can be used to alter a local queue. In this example, QUEUE01 is updated to have a description of "Hello World".
If the value contains white space, the value must be wrapped in single quotes or double quotes. In this example, Hello World is wrapped in single quotes.
echo "alter qlocal (QUEUE01) DESCR (Hello World)" | runmqsc MANAGER01
The display queue or display qlocal 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(QLOCAL)
DESCR (Hello World)
Alter multiple fields
In this example, both DESCR and MAXDEPTH are updated simultaneously.
echo "alter qlocal (QUEUE01) DESCR (Hello World) MAXDEPTH (100)" | runmqsc MANAGER01