CHCUNAVAIL (Choice Color/Display Attribute when Unavailable) Keyword for Display Files --Example

Figure 113 shows how to specify the CHCUNAVAIL keyword:

Figure 113. Specifying the CHCUNAVAIL Keyword

|....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A
A          R RECORD
A            F1             2Y 0B  2  5SNGCHCFLD CHECK(ER)
A                                      CHOICE(1 'Choice number 1')
A                                      CHOICE(2 'Choice number 2')
A                                      CHCCTL(1 &CHCCTL1);
A                                      CHCCTL(2 &CHCCTL2);
A                                      CHCUNAVAIL((*COLOR TRQ))
A            :
A            :
A

In this example, the unavailable choices for the selection field are displayed in turquoise on a color display.