Return to the API Tips
Sample RPG code using the QMHLSTM API
The List Nonprogram Messages (QMHLSTM) API lists messages from one or two non-program message queues. This list API returns the message information in a user space through the format specified in the parameter list. There are two places where you can find sample RPG IV code that shows how to use QMHLSTM: a. Utility DSPMSGQ (Freeware) Utility DSPMSGQ consist of an RPG IV program and a display file that shows a subfile of messages from a given message queue. The utility is available for download from the AS400Network RPG Community at http://www.as400network.com/communities/rpgprogrammer/rpgcode/SampleUseQMHLSTM.zip b. Utility CVTMSGQ in TAA Productivity Tools (Commercial software) TAA Productivity Tools is available at http://www.taatool.com/. You can learn more about the QMHLSTM API at http://publib.boulder.ibm.com/pubs/html/as400/v4r5/ic2978/info/apis/QMHLSTM.HTM.
[report a broken link by clicking here]