APIs by Example: Message Handling (QMHRTVM/QMHMOVPM/QMHRCVPM)

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.

Download the save file containing the source code.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s