A field's display attributes and colour may be conditioned by an option indicator, written on a keyword line beneath the field with the indicator in DDS columns 7-16:
A CUSTNO 6 0B 5 20
A 60 DSPATR(RI)
A 60 COLOR(RED)
CUSTNO renders in reverse image and red only while *IN60 is on; with the
indicator off it renders exactly as an unconditioned field would. The negated
form (N60) applies the attribute while the indicator is off.
Details:
- Each entry is gated by its own indicator, so a field may carry several attributes that come and go independently.
- Several attributes on one conditioned line (
DSPATR(RI UL)) share that line's indicator. - A conditioned attribute is added to whatever unconditional
DSPATRthe field declares; it does not replace it. - When more than one conditioned
COLORis active at once, the last one written wins - the same way the DDS compiler resolves the attribute byte.
Attributes written without a conditioning indicator - in the field's own keyword area or on a plain continuation line - are unconditional and always in effect.