As i have defined a structure in EXEC SQL BEGIN and END section and i am declaring a structure type array variable after structure definition,but during precompilation it is throwing an error:
" SQL0008N The token "[" found in a host variable declaration is not valid."
Code is like this:
EXEC SQL BEGIN DECLARE SECTION
struct abc
{
int a,
int b,
char c[12];
char d[14];
.....
.....
....
} v_abc[20];
EXEC SQL END DECLARE SECTION
please suggest a solution asap....
" SQL0008N The token "[" found in a host variable declaration is not valid."
Code is like this:
EXEC SQL BEGIN DECLARE SECTION
struct abc
{
int a,
int b,
char c[12];
char d[14];
.....
.....
....
} v_abc[20];
EXEC SQL END DECLARE SECTION
please suggest a solution asap....
Comment