Use the following C type specifiers and declarations to define a host variable declaration:
struct (excluding tag type definitions)
A host variable that is defined as a “long” data type will be 4 bytes when compiled with the 32‑bit compiler option and 8 bytes when compiled with the 64‑bit compiler options on the Solaris, HP‑UX, AIX or 64‑bit Windows platforms.
When generating SQLDA for the static SQL statement, the PP2 precompiler assigns:
The following C type specifiers and declarations cannot be used to declare a host variable:
pointer designation (char *var1)
structure definition via tags
unsigned integer types
Specify C array dimensions by a numeric literal. Defined constants or numeric expressions are not allowed within a C array declaration.