CSQUTIL (WebSphere MQ utility program), utility program (CSQUTIL), CSQUTIL function, copying messages from queues, data sets, queues to a data set (COPY), copying, queues" /> Copying queues into a data set while the queue manager is running (COPY)

 

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. We 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:

  1. If you want to copy the object definitions from the named page set, use COPYPAGE.

  2. If you want to copy messages to a data set when the queue manager is stopped, use SCOPY.

  3. 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)-'