PIC X(n)where n is an integer between 1 and the maximum length.
01 char-field1 PIC X(5). 01 char-field2 PIC X(254).
The largest supported fixed length character string is 254 bytes for the DB2 ECM. If you need a character string greater than 254 bytes in length, use a VARCHAR field.
OpenESQL trims trailing spaces from input parameters before sending them to the database server. Trimming the trailing spaces can improve performance when comparing CHAR and VARCHAR values.
01 char-field3 SQL TYPE IS CHAR(200).
The char-field3 format uses the CHAR SQL TYPE.