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

 

Copying queues into a data set while the queue manager is not running (SCOPY)

Use the SCOPY function to copy queued messages to a sequential data set when the queue manager is not running, without destroying any messages in the original queues.

The scope of the SCOPY 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.

To use the SCOPY function, DDname CSQP0000 must specify the data set with page set zero for the subsystem required.

Note:
The SCOPY function does not operate on shared queues.

Queue Management (SCOPY)

>>-SCOPY--| Object Selection |--| DDname Selection |----------->< Object Selection |--+-QUEUE(q-name)-----------------------------+----------------| | .-DEFTYPE(ALL)--------. | '-PSID(psid-number)-+---------------------+-' '-DEFTYPE(PREDEFINED)-' DDname Selection |--+----------------+-------------------------------------------| '-DDNAME(ddname)-'