MQ Message Manager utility has several features to manage MQ Queue Messages. it contains various options such as display, copy, delete, put, filter, export messages of an MQ Queue.
The tool is useful for MQ Administrators, and Developers.
It will run on Windows, and Linux.
Extract files from the compressed zip file provided.
# HOST DEFINITIONS
java -jar -Xms256m -Xmx1024m msgmanager.jar
You can choose the pre-configured Queue Manager from the Queue Manager drop down (or) you can enter a different Queue Manager configuration manually.
To display from messages from your local queue manager, you just need to enter Queue Manager Name, and Host Name.
Starting Msg#: To retrieve by message index.
Retrieve#Rows: number of messages to be retrieved
Convert CCSID?: To convert message data to current locale, for example from EBCDIC.
Go Button: To retrieve messages from a Queue. By default, 100 messages will be retrieved from a Queue, use “Retrieve#Rows” to change the count.
Put Message Button: To write messages to a Queue.
Show Qâ€™s Button: To load Queue Names of a Queue Manager into the ComboBox list.
This option will highlight all the displayed messages
Write to File
Write selected messages to an output file without the MQ headers. You will have the option to write to single file, or multiple files if selected multiple messages.
Write to File w/Headers
Output complete MQ Message(s) with the MQ headers to file. You will have the option to write to single file, or multiple files if selected multiple messages.
Delete one or more messages from the Queue provided your ID has delete access to the Queue.
Delete all messages from the Queue provided your ID has delete access to the Queue.
To download the entire Q of messages to a file.
To purge the Queue data.
Copy to Queue
To copy messages from one Queue to another to the same or a different queue manager.
Ability to resubmit message back to the input Queue that the message was originally processed from. Especially useful when dealing with WBI Adapters. For example, you can process the adapter â€śFailed Eventsâ€ť by resubmitting them back to the input queue
Note: Notice that ResubmitToQMgr, and ResubmitQueue are populated.
Sorting by header column
Sort messages once retrieved (Can sort on any column)
Here you can format message depending on message type;
**Character â€“ to view as character data.
**EBCDIC â€“ to display EBCDIC data.
**XML â€“ Parse, and format xml data.
**JSON â€“ Parse, and format json data.
**COBOL â€“ Parse, and format using a COBOL copybook.
Write to Q Button
Use this button to write a message to a Queue.
1) Unauthorized error 2035
AMQERR01.LOG logs 2035 on SYSTEM.DEFAULT.MODEL.QUEUE.
Grant +dsp access to SYSTEM.DEFAULT.MODEL.QUEUE
setmqaut -m QMGR -t q -n SYSTEM.DEFAULT.MODEL.QUEUE -p user +dsp
The author would like to thank Mike (Shenfu) Fan. and Oliver Fisse from IBM Software Services ISSW team, for reviewing and helping to improve this article.
zip binary: mqmsgman-v28