CHOICE (Selection Field Choice) Keyword for Display Files--Example

Figure 122 shows how to specify the CHOICE keyword:

Figure 122. Specifying the CHOICE Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A          R RECORD
A            F1             2Y 0B  1  2SNGCHCFLD
A  01                                  CHOICE(1 '>Undo       ')
A                                      CHOICE(2 &MARKTXT);
A                                      CHOICE(3 '>Copy       ')
A            MARKTXT       12A  P
A

In this example, three choices are defined for the single-choice selection field F1. The text for choice 2 is contained in field MARKTXT, and the mnemonic for choice 2 must be contained in the text supplied by the application at run time. If indicator 01 is off when the record is written, only choices 2 and 3 are displayed.