Conditioning a field for more than one keyword

If you are conditioning a field, the field name (or the constant) and the last (or only) indicator must be on the same line.

If you do not select the field for an output operation, no keywords specified for that field are in effect, regardless of how the keywords are conditioned. For example, in the following figure, FLDA is selected if either indicator 01 is off or indicator 02 is on. If FLDA is not selected, any keyword associated with that field, such as DSPATR(HI), is ignored.

Figure 1. Display file coding example
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00100A* DISPLAY FILE EXAMPLE
00101A*
00102A                                      REF(PAYROLL)
00103A          R MENU
00104A          H                           HLPARA(1 1 12 80)
00105A                                      HLPRCD(RECORD1 FILEA)
00106A N01
00107AO 02        FLDA          20I 2O  2  2DSPATR(HI)
00108A            FLDB          22N 2B  3  2
00109A  72 73
00110AO 60 61 62
00111AA 63                                  DSPATR(HI)
00112A            FLDC           7Y 0B  7 20DSPATR(RI PC)
00113A  42 43
00114AO 60 61
00115AO 62                              9  2'Constant'
00116A            FLDD      R          11  2

If you want to condition one or more keywords, the last (or only) indicator must appear on the same line as the keywords. If the conditioning applies to keywords on more than one line, you must use keyword continuation for the indicators to apply to all keywords.

Related reference
Rules for DDS keywords and parameter values