SFLRTNSEL (Subfile Return Selected Choices) Keyword for Display Files--Example

Figure 271 shows how to specify the SFLRTNSEL keyword.

Figure 271. Specifying the SFLRTNSEL 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                                      SFLMLTCHC
A                                      SFLRTNSEL
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'Single selection list:'
A

In this example, the GET-NEXT-CHANGED operation returns all selected choices. This includes default choices which did not actually change, for example, the user never specifically selected the choice.