The CODES file contains the following types of records:
Output control code availability records
The output control code availability records appear at the beginning of the CODES file. There is one record for each output control code used by any device. Each record consists only of the unique number and the output control code name.
Device header records
The records for each device must appear after the availability records. The first output device record is the device header record. It consists of the model and the number 000. Any additional characters in the record are treated as comments, and it is usual to include PRINTER (for a printer) or VIDEO (for a terminal) to indicate the type of device.
Output control code records
The output control code records for the device follow the device header record. These records have the model, unique number (which are defined in the availability records), hexadecimal sequence, and output control code name.
The hexadecimal sequence for an output control code is a sequence of two-digit hexadecimal numbers that are output to a printer. The hexadecimal sequence may be replaced with a formdepth formula.
Note: Do not remove output control code names beginning with bldc, as these correspond to data attributes (for example, bldcunder corresponds to UNDER).
You can use a formdepth formula to define an output sequence to be sent to your output device for the output control code specified.
A formdepth formula is an extension of the sequence of hexadecimal values in the usual output control code.