EXEC SQL BEGIN DECLARE SECTION;
char SQLSTATE[6]
sqlint32 SQLCODE;
EXEC SQL END DECLARE SECTION;
The SQLCODE declaration is assumed during the precompile step. Note that when using this option, the INCLUDE SQLCA statement must not be specified.
extern sqlint32 SQLCODE;
extern char SQLSTATE[6];