Open ClientConnect supports the following three character types:
CS_CHAR is a set-length character type.
CS_VARCHAR is a variable-length character type. It corresponds to the DB2 datatype VARCHAR, the DB-Library datatype DBVARYCHAR, and the Gateway-Library datatype TDSVARYCHAR, and includes a length specification (the initial two bytes, referred to in print as “LL”) along with the data.
CS_LONGCHAR is a long variable-length character type. It does not include the two-byte “LL” length specification prefix.
CS_VARCHAR does not correspond
to the Adaptive Server datatype varchar. Open ClientConnect converts
Adaptive Server varchar data to CS_VARCHAR.