Entering content frame

 Indicator Values 

The table shows the possible indicator values that can be taken by an indicator variable of the hostindicator component or an sqlvar entry in the descriptor.

Indicator Value

Meaning

0

A value has been transferred between the database and the application program without errors. The value sent to the table column or host variable is a defined value.

-1

The value of the host variables or of the corresponding table entry is the NULL value.

-2

An error occurred (overflow, or division by zero).
The value of the host variables or of the corresponding table entry is not defined.

> 0

A truncated value has been sent to the host variable or to the corresponding table column.
The indicator value specifies the actual length of the value.

SQL_DEFAULT_PARAM

Used to transfer DEFAULT values to the database instance.

SQL_IGNORE

Used to ignore LONG columns in GETVAL statements and PUTVAL statements

See also: Database System Messages (sent through the sqlca structure)

 

Leaving content frame