include sqlda

Description

Defines the SQLDA structure in an Embedded SQL program.

Syntax

exec sql include sqlda; 

Examples

Example 1

exec sql include sqlda;
...
SQLDA *input_descriptor, *output_descriptor;
 CS_SMALLINT small;
 CS_CHAR     character[20];
input_descriptor = (SQLDA *)malloc(SYB_SQLDA_SIZE(3));
 input_descriptor->sqlda_sqln = 3;
 output_descriptor = (SQLDA *)malloc(SYB_SQLDA_SIZE(3));
 output_descriptor->sqlda_sqln = 3;

Usage