I have also found Naren's simple program a nice little building block to browsing messages... We had similar requirements, (ie: To browse all messages in a given queue)
Some enhancements that I would ...
I have resolved the issue.
If anyone else has a similar problem the solution can be found in the MQSeries APG Chapter 8 - MQOPEN options for removing messages.
Sorry for the premature cry for help.
The Scenario:
I have a requesting application which issues an MQPUT on queue 'A', (whereby a receiving application processes the request and posts the reply onto Queue 'B').
This process works perf ...