Copying queues into a data set while the queue manager is running (COPY)
Use the COPY function to copy queued messages to a sequential data set
while the queue manager is running, without destroying any messages in the
original queues.
The scope of the COPY function is determined by the keyword that you specify
in the first parameter. You can either copy all the messages from a named
queue, or all the messages from all the queues on a named page set.
Use the complementary function, LOAD, to restore the messages to their
respective queues.
Notes:
- If you want to copy the object definitions from the named page set, use
COPYPAGE.
- If you want to copy messages to a data set when the queue manager is stopped,
use SCOPY.
- See Syncpoints for information about how to avoid problems
with duplicate messages if this function fails.
Queue management (COPY) |
 >>-COPY--| Object Selection |--| DDname Selection |------------><
Object Selection
|--+-QUEUE(q-name)-----------------------------+----------------|
| .-DEFTYPE(ALL)--------. |
'-PSID(psid-number)-+---------------------+-'
'-DEFTYPE(PREDEFINED)-'
DDname Selection
|--+----------------+-------------------------------------------|
'-DDNAME(ddname)-'
|