Fixed-length Character Strings

Fixed-length character strings (CHAR) are SQL data types with a driver-defined maximum length. They are declared in COBOL as PIC X(n) where n is an integer between 1 and the maximum length.

For example:

03 char-field1      pic x(5).
03 char-field2      pic x(254).