Copying a local queue definition with DEFINE QLOCAL
You can copy a queue definition using the LIKE attribute on the DEFINE QLOCAL command.
About this task
You can use the DEFINE command with the LIKE attribute to creates a queue with the same attributes as the specified queue, rather than those of the system default local queue. You can also use this form of the DEFINE command to copy a queue definition, but substitute one or more changes to the attributes of the original.
Notes:
- When you use the LIKE attribute on a DEFINE command, you are copying the queue attributes only. You are not copying the messages on the queue.
- If you a define a local queue, without specifying LIKE, it is the same
as:
DEFINE LIKE(SYSTEM.DEFAULT.LOCAL.QUEUE)