Fetch CHAR data
An application can fetch data from a database column of
type CHAR or VARCHAR into a character (char, string, fixchar, varchar,
or lvarchar) host variable. If the column data does not fit
into the character host variable, truncates
the data. To notify the user of the truncation, performs
the following actions:
- It sets the sqlca.sqlwarn.sqlwarn1 warning flag to
W
and the SQLSTATE variable to01004
. - It sets any indicator variable that is associated with the character host variable to the size of the character data in the column.