Supplying Parameters Through an sqlda Structure (ESQL/C)
You can specify the sqlda pointer in the USING DESCRIPTOR clause of the EXECUTE statement.
Each time the EXECUTE statement is run, the values that the descriptor structure describes are used to replace question-mark ( ? ) placeholders in the PREPARE statement.
The sqlda.sqld value specifies the number of input values that are described in occurrences of sqlvar. This number must correspond to the number of dynamic parameters in the prepared statement.
The following example shows how to use an sqlda structure
to execute a prepared statement in Informix®
ESQL/C:
EXEC SQL execute prep_stmt using descriptor pointer2;