FreeKB - IBM MQ dmpmqmsg - copy message to another queue
IBM MQ - dmpmqmsg - copy message to another queue

These examples are based on a Linux system. Switch to the mqm user.

su - mqm

 

The dmpmqmsg command is used to perform a number of tasks, including moving messages from queue "a" to queue "b". In this example, the messages on QUEUE01 are moved to QUEUE02.

dmpmqmsg -m MANAGER01 -I QUEUE01 -o QUEUE02

 

The following will be displayed after issuing the command. In this example, 4 messages were moved from QUEUE01 to QUEUE02.

Read    - Files: 0  Messages:  4  Bytes:  4661
Written - Files: 0  Messages:  4  Bytes:  4661

 

Once moved, you may want to use the amqsbcg command to display the messages in the queue, qstatus command to display the CURDEPTH (current depth) of the queue, and display queue to display the MAXDEPTH of the queue.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter ec8d4 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |