DFT (Default) Keyword for Display Files --Examples

Figure 136 shows how to specify the DFT keyword.

Figure 136. Specifying the DFT Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00030A            HOTTYP         1   I  7  9DFT('D')
00040A                                      VALUES('D' 'S')
00050A                                  8  9'ON'
00060A        01                       12  1'HOTEL NAME: 'TERRACE INN'
00070A                                      TEXT('Constant field is +
00080A                                      conditioned, not the implicit +
00090A                                      DFT keyword')
00100A        02                       12  1'HOTEL NAME: 'RIVER VIEW INN'
00110A                                      TEXT('Either 'TERRACE INN' or +
00120A                                          'RIVER VIEW INN' could +
00130A                                          appear in line 12, position 1')
     A

The constant field ON, having no option indicators, is always displayed.

If indicator 01 is on, the following is displayed:

HOTEL NAME:  'TERRACE INN'

If indicator 02 is on, and indicator 01 is off, the following is displayed:

HOTEL NAME:  'RIVER VIEW INN'

If you are specifying a constant field for more than one display size, and you are changing the location of the field but not the contents of the field for the different display sizes, then do not repeat the value. Figure 137 shows how to do this.

Figure 137. Specifying a Constant Field with More Than One Display Size

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A                                      DSPSIZ(*DS3 *DS4)
     A                                      :
     A                                      :
00080A                                 22  2'Constant data'
00090A                                 26  2
     A

The constant field Constant data appears on line 22, position 2, on the 24 x 80 display screen, and it appears on line 26, position 2, on the 27 x 132 display.