This installment of Carsten Flensburg’s APIs by Example not only shows how to use the Message Handling APIs Retrieve Message (QMHRTVM), Move Program Message (QMHMOVPM), and Receive Program Message (QMHRCVPM), but it also offers a great way to enhance the system request menu.
The system request menu enhancement is comprised of exit program CBX108 (as well as service program CBX108S) that is called by the registered exit point, which in this case is the presystem request exit. A third program, CL program CBX108C, generates example message file SRQMSGF, which contains the additional system request menu options.