Figure 128 shows the effects of specifying COLOR and DSPATR for a field.
Figure 128. Specifying the COLOR and DSPATR Keywords
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD (1)
00020A 1 2'Column Heading'
00030A DSPATR(HI)
00040A (2) FIELD1 5 3 2
00050A (3) FIELD2 5 I 5 2COLOR(YLW)
00060A (4) FIELD3 5 7 2DSPATR(BL)
00070A (5) FIELD4 5 I 9 2
00080A 42 COLOR(YLW)
00090A 43 COLOR(TRQ)
00100A 44 COLOR(BLU)
A
On monochrome displays, FIELD4 is green. On all displays, FIELD4 is underlined.
Figure 129 shows one way of specifying a field for use as an input-capable field on both color and monochrome displays.
Figure 129. Specifying a Field for Color and Monochrome Displays
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD
00020A(2)(1) FIELDA 5 B 2 2COLOR(TRQ)
00030A 44 ERRMSG('Record not found' 44)
A
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.