Sign in

docs DDS Display

GRDATR (Grid Attribute) keyword

GRDATR (Grid Attribute) keyword

You use this file-level or record-level keyword to define the default color and line type attributes for the grid structure.

The format of the keyword is:

GRDATR([(*COLOR grid-line-color | &Color-field)]
[(*LINTYP grid-line-attribute | &Lintype-field)])

P-fields can be used to define or change the attributes at run time when this keyword is used at the record-level.

Valid parameter and p-fields values are:

Table 1. Valid color values

COLORMeaningProgram field value
BLUBlueX’01’
GRNGreenX’02’
CYANCyanX’03’
REDRedX’04’
VLTVioletX’05’
YLWYellowX’06’
WHTWhiteX’07’
GRYGrayX’08’
LBLULight blueX’09’
LGRNLight greenX’0A’
LTRQLight TurquoiseX’0B’
LREDLight redX’0C’
LVLTLight violetX’0D’
LYLWLight yellowX’0E’
HWHTHigh-intensity whiteX’0F’
BLKBlackX’10’
NONEDefault value of the displayX’FF’

Note: The default color is white.

Table 2. Valid line types

Line typeMeaningProgram field value
SLDSolidX’00’
THKThickX’01’
DBLDoubleX’02’
DOTDotX’03’
DSHDashX’08’
THKDSHThick dashX’09’
DBLDSHDouble dashX’0A’
NONEDefault value of the displayX’FF’

Note: The default line type is solid.

If a p-field is specified for either the COLOR or LINTYP parameter, the field must exist in the record format. The field is defined as data type A, usage P, and length of 1.

Grid line support requires DBCS equipment. This equipment should have the capability of calling Japanese DOS.

Option indicators are valid for this keyword.

Example

The following example shows how to specify the GRDATR keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
     A                                      GRDATR((*COLOR WHT) (LINTYP SLD))
     A          R GRDREC1                   GRDRCD
     A                                      GRDATR((*COLOR BLU) (LINTYP DSH))
     A                                      GRDBOX((*POS (2 2 10 70 )) +
     A                                      (*TYPE PLAIN)
     A
     A          R GRDREC2                   GRDRCD
     A                                      GRDBOX((*POS (4 4 5 45)) +
     A                                      (*TYPE PLAIN)
     A                                      GRDLIN((*POS (6 4 20)) +
     A                                      (*TYPE LOWER) +
     A                                      (*COLOR RED) (*LINTYP DBL))
     A

When the GRDREC1 record is written, the TYPE PLAIN box defined by the GRDBOX keyword within the GRDREC2 record will be displayed with a blue dash lines. These attributes are defined on the GRDATR keyword on the GRDREC1 record.

When the GRDREC2 record is written, the TYPE PLAIN box defined by the GRDBOX keyword within the GRDREC2 record will be displayed with a white solid line. These attributes are defined on the GRDATR keyword at the file level. The GRDLIN defined within GRDREC2 will be a red double line. The attributes defined on the GRDBOX or GRDLIN keyword override any GRDATR keyword on the file- or record-level.