This structure is used to pass variable length data to the database manager.
Field Name | Data Type | Description |
---|---|---|
LENGTH | SMALLINT | Length of the character string pointed to by DATA. |
DATA | CHAR(n) | An array of characters of length LENGTH. |
SQL_STRUCTURE sqlchar
{
short length;
_SQLOLDCHAR data[1];
};
* Replace maxlen with the appropriate value:
01 SQLCHAR.
49 SQLCHAR-LEN PIC S9(4) COMP-5.
49 SQLCHAR-DATA PIC X(maxlen).