FreeKB - Copy message to another IBM MQ queue using the dmpmqmsg command
Copy message to another IBM MQ queue using the dmpmqmsg command

Home > Search


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 tasking, including copying messages from queue "a" to queue "b". In this example, the messages on QUEUE01 are copied to QUEUE02. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

dmpmqmsg -m MANAGER01 -i QUEUE01 -o QUEUE02

 

Once copied, 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.

The dmpmqmsg command can also be used to move messages.



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 c59d5 in the box below so that we can be sure you are a human.




Comments