CSQUTIL (WebSphere MQ utility program), utility program (CSQUTIL), utility function, restoring messages from, data sets, restoring messages, queues, LOAD function" /> Restoring messages from a data set to a queue (LOAD)

 

Restoring messages from a data set to a queue (LOAD)

The LOAD function of CSQUTIL is complementary to the COPY or SCOPY function. LOAD restores messages from the destination data set of an earlier COPY or SCOPY operation. The queue manager must be running.

The data set can contain messages from one queue only if it was created by COPY or SCOPY QUEUE, or from a number of queues if it was created by COPY PSID or several successive COPY or SCOPY QUEUE operations. Messages are restored to queues with the same name as those from which they were copied. We can specify that the first or only queue is loaded to a queue with a different name. (This would normally be used with a data set created with a single COPY queue operation to restore the messages to a queue with a different name.)

Note:
See Syncpoints for information about how to avoid problems with duplicate messages if this function fails.

Queue management (LOAD)

>>-LOAD--| Object Selection |--| DDname Selection |-------------> >--| Record Selection |---------------------------------------->< Object Selection |--+---------------+--------------------------------------------| '-QUEUE(q-name)-' DDname Selection |--+----------------+-------------------------------------------| '-DDNAME(ddname)-' Record Selection |--+-------------+--+-------------+-----------------------------| '-SKIPMSGS(n)-' '-MSGCOUNT(m)-'