Message Subfile
Message Subfile: Message Subfiles (or Subfile Messages) are very useful for screens where it needs to display multiple messages to the user giving the flexibility to the user to view all the messages by taking PAGE DOWN/PAGE UP. These messages can be sent using SNDPGMMSG in CL Program. And, RMVMSG can be used to clear these messages from the Message Queue. Message Subfile would then load the messages from the Specified Program Message Queue and display them on the screen. However, When we use RPG, it require writing CL Program to execute SNDPGMMSG & RMVMSG to Send or Remove Messages to/from the queue. Below APIs become very useful to do the same from RPG program rather than having to create another program to do this. QMHSNDPM - Send Program Message API. QMHRMVPM - Remove Program Message API. We will see how to create Message Subfile before going on to using these APIs to send the messages to Queue. When adding new Record Format in DSPF, Select the type...