COLOR (Color) Keyword in Printer Files

Use this field-level keyword to specify the color for a field, if it is supported by the printer device. The COLOR keyword is used only by the 4224 printer. If you do not specify COLOR, or if the keyword is not valid for a printer device, black (the default value) is used.

The format of the keyword is:

COLOR(BLK | BLU |BRN | GRN | PNK | RED | TRQ | YLW)

You can specify one, and only one, parameter value for COLOR. The valid parameter values are:

Parameter
Meaning

BLK
Black

BLU
Blue

BRN
Brown

GRN
Green

PNK
Pink

RED
Red

TRQ
Turquoise

YLW
Yellow

If you use COLOR on the same record format with the BLKFOLD, CPI, or DFNCHR keyword, the file is not created.

COLOR is valid on IPDS and IPDS AFP(*YES) printers. If you specify DEVTYPE(*SCS) on the CRTPRTF command, a warning message results but the file is created successfully.

Valid data types for this keyword are A, S, and F.

When you specify COLOR more than once for a field, you must specify option indicators each time you specify COLOR. If more than one COLOR is in effect when printing the field, the first one in effect is used. You cannot specify the same color more than once on the same field. Figure 308 shows the effects of specifying COLOR for a field.

Option indicators are valid for this keyword.