Expandable Subfile - Example Program
Subfile: Subfiles are one of the most used concepts on IBM i. There are three different types of Subfiles. Load All Subfile ( Click Here to see more about Load All Subfile with an example). Expandable Subfile Single Page Subfile Message Subfile is used to display messages on the screen. Click Here to see more about Message Subfiles. We will see more about Expandable Subfile in this article with an example. Variable has been used to display message on the screen in this example. Message subfile can be used instead. Expandable Subfile: As the name suggests Subfile is expanded (loaded) as we press the 'PAGE DOWN' Button. Only one page (equal to the number of records mentioned against SFLPAG in DSPF) is loaded on the initial load and the next page is loaded when we press 'PAGE DOWN'. Logic for PAGE DOWN needs to be handled in the Program and PAGE UP is taken care by the system (using the records already loaded from Subfile buffer). However, Maximum numb...