Entering content frame

 Warning Messages in the Structure sqlca 

This table shows you the warning messages that can occur as database system messages.

Each of the sqlca components sqlwarn1..sqlwarnc has the value W if the execution of an embedded SQL statement generates the corresponding warning.
If the corresponding warning does not exist, the component contains a blank character.

sqlwarn1

char [1]

Specifies whether a character string of the type char was truncated when a host variable and the database exchanged values.

If you use an indicator variable, and a warning occurs, the variable specifies the length of the original character string.

sqlwarn2

char [1]

Specifies whether COUNT, MAX, MIN, SUM, AVG, STDDEV or VARIANCE NULL values were found in the database table and ignored by the database kernel when the SET functions were executed

sqlwarn3

char [1]

Specifies whether the number of result columns of a SELECT or FETCH statement did not match the number of host variables in the INTO clause

sqlwarn4

char [1]

Specifies whether an UPDATE or DELETE statement was performed without a WHERE clause and, therefore, in the entire database table

sqlwarn6

char [1]

Specifies whether the values of a date (DATE or TIMESTAMP) needed to be corrected

You see this warning for incorrect dates such as 31.2 or 37.7.

sqlwarn8

char [1]

Specifies whether all table rows needed to be searched to generate a result table

sqlwarnb

char [1]

Set if a TIME value is greater than 99 (or greater than 23 in the USA format) The value is corrected to modulo 100 (or 24).

sqlwarnc

char [1]

For a SELECT statement, specifies whether more rows were found than permitted by the ROWNO predicate in the WHERE clause

 

 

Leaving content frame