If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Precompiler refuse int type in EXEC SQL BEGIN DECLARE SECTION
I have a problem compiling my embedded sql:
db2 prep Dbprog.sqc bindfile gave me the following error.
172 SQL0008N The token "int" found in a host variable
declaration is not valid.
Is seems that the precompiler do not accept the int declarations, it accept only short or long. Is there a way to tell the precompiler to accept int variable like this
EXEC SQL BEGIN DECLARE SECTION;
int maj = 0;
int min = 0;
char pch = 0;
EXEC SQL END DECLARE SECTION;
db2 prep Dbprog.sqc bindfile gave me the following error.
172 SQL0008N The token "int" found in a host variable
declaration is not valid.
Is seems that the precompiler do not accept the int declarations, it accept only short or long. Is there a way to tell the precompiler to accept int variable like this
EXEC SQL BEGIN DECLARE SECTION;
int maj = 0;
int min = 0;
char pch = 0;
EXEC SQL END DECLARE SECTION;
Thanks
No, long and short only. I assume this is because "int" can be different things to different compilers, etc.
__________________
--
Jonathan Petruk
DB2 Database Consultant