Look at "Report Messages" in Chapter 3 of the manual "MQ Application Programming Guide".



Also look at "Part 3 - Message Monitoring" in the manual "Monitoring WebSphere MQ".



HTH,

Glenn