SFLSCROLL (Subfile Scroll) Keyword for Display Files--Example

Figure 272 shows how to specify the SFLSCROLL keyword.

Figure 272. Specifying the SFLSCROLL Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R SFLRCD                    SFL
A            CTLFLD         1Y 0H      SFLCHCCTL
A            F1             4A  O  6 10
A          R SFLCTLRCD                 SFLCTL(SFLRCD)
A                                      SFLSNGCHC
A                                      SFLPAG(5) SFLSIZ(&SFLSIZ);
A                                      SFLDSP SFLDSPCTL
A                                      ROLLUP(10)
A   10                                 SFLEND(*SCRBAR)
A            F3             5S 0H      SFLSCROLL
A            F2             4S 0H      SFLRCDNBR(CURSOR *TOP)
A            SFLSIZ         5S 0P
A                                 1 30'Panel Title'
A                                 4  5'Multiple selection list:'

In this example, field F3 contains the relative record number of the subfile record that is at the top of the subfile when control is given back to the program.