* environment : Linux UDB V8.2
1. a.h
#define csize 13
struct { short len; char data[csize]; } firstnmest;
2. a.sqc
#include <stdio.h>
EXEC SQL INCLUDE SQLCA;
int main()
{
EXEC SQL BEGIN DECLARE SECTION;
EXEC SQL INCLUDE 'a.h';
EXEC SQL END DECLARE SECTION;
}
3. db2 prep a.sqc bindfile
LINE MESSAGES FOR a.sqc
------ --------------------------------------------------------------------
SQL0060W The "C" precompiler is in progress.
6 SQL0062W Starting INCLUDE of file
"/db2home/db2inst1/work/tmp2/a.h".
2 SQL0008N The token "csize" found in a host variable
declaration is not valid.
2 SQL0008N The token "}" found in a host variable
declaration is not valid.
6 SQL0063W Completed INCLUDE of file "a.h".
SQL0095N No bind file was created because of previous
errors.
SQL0091W Precompilation or binding was ended with "3"
errors and "0" warnings.