Work with local queues
This section contains examples of some MQSC commands used to manage local, model, and alias queues.
See MQSC commands for detailed information about these commands.
- Defining a local queue with DEFINE QLOCAL
For an application, the local queue manager is the queue manager to which the application is connected. Queues managed by the local queue manager are said to be local to that queue manager.- Display default object attributes with DISPLAY QUEUE
We can use the DISPLAY QUEUE command to display attributes that were taken from the default object when an IBM MQ object was defined.- Copy a local queue definition with DEFINE QLOCAL
We can copy a queue definition using the LIKE attribute on the DEFINE QLOCAL command.- Change local queue attributes with ALTER QLOCAL or DEFINE QLOCAL
We can change queue attributes in two ways, by using either the ALTER QLOCAL command or the DEFINE QLOCAL command with the REPLACE attribute.- Clearing a local queue with CLEAR QLOCAL
We can use the CLEAR QLOCAL command to clear a local queue.- Delete a local queue with DELETE QLOCAL
We can use the MQSC command DELETE QLOCAL to delete a local queue.- Browsing queues with the sample program
IBM MQ provides a sample queue browser used to look at the contents of the messages on a queue.- Enable large queues
IBM MQ supports queues larger than 2 GB.- Modifying IBM MQ queue files
From IBM MQ Version 9.2.0, we can control the size of queue files using an attribute on local and model queues. We can display the current size of a queue file, and the maximum size it is currently able to grow to (based on the block size currently in use in that file), using two queue status attributes.Parent topic: Work with local IBM MQ objects
Related information