PP2 uses data type codes for input and output SQL Descriptor Area (SQLDA) structures generated by the precompiler and recognized at execution. The database returns data type code values to the SQLDA specified by the application using a PREPARE or DESCRIBE statement. The data type is in the two byte SQLTYPE integer field of the SQLDA.
Use the following guidelines in interpreting the tables in the next sections:
Code | Requirements for Variable |
---|---|
Even-numbered | Cannot be null (no indicator variables are allowed) |
Odd-numbered | Can be null (indicator variables are allowed) |