Use this field-level keyword to specify one or more display attributes for the field you are defining. You can specify the DSPATR keyword more than once for the same field, and you can specify more than one attribute for the same keyword. However, each attribute (for example, UL), can be specified only once per field.
The format for the keyword is one of the following:
DSPATR(attribute-1 [attribute-2 [attribute-3 [...]]]) or DSPATR(&program-to-system-field);
If you specify more than one attribute for the same field, whether in one keyword or in separate keywords, each attribute that is specified (and in effect when the field is displayed) affects the field. For example, if you want a field to be displayed with its image reversed and with high intensity, specify either DSPATR (RI HI), or DSPATR(RI), and DSPATR(HI).
The program-to-system-field parameter is required and specifies that the named field must be defined in the record format, alphanumeric (A in position 35), length of one, and usage P (P in position 38). The program uses this P-field to set the display attribute for the field this DSPATR keyword applies to.
The name P-field is used for multiple fields with the record being defined. One DSPATR P-field is allowed per field. The P-field contains the display attribute and identifies whether the field should be protected. See Valid P-field Values for Display Files.
The following are valid attributes for the first format of the DSPATR keyword:
For All Fields
For Input-Capable Fields Only
Notes:
Option indicators are valid for this keyword, except when the attributes OID or SP are the only display attributes specified.
Detailed descriptions of each of the attributes follow the coding example and sample display provided in Figure 141.
Figure 141. A 5-Byte Field Displayed with Various Display Attributes
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.