Indicator variables are C variables that hold supplementary information when you are fetching or putting data. There are several distinct uses for indicator variables:
An indicator variable is a host variable of type a_sql_len that is placed immediately following a regular host variable in a SQL statement. For example, in the following INSERT statement, :ind_phone is an indicator variable:
EXEC SQL INSERT INTO Employees VALUES (:employee_number, :employee_name, :employee_initials, :employee_phone:ind_phone );
On a fetch or execute where no rows are received from the database server (such as when an error or end of result set occurs), then indicator values are unchanged.