Sometimes you will encounter compile errors. Use the following
information to interpret these errors.
Attention: If you separate precompile and compile steps,
and the source program refers to externally described files, the referred
to files must not be changed between precompile and compile. Otherwise, results
that are not predictable may occur because the changes to the field definitions
are not changed in the temporary source member.
Examples of externally described files are:
- COPY DDS in COBOL
- %INCLUDE in PL/I
- #pragma mapinc and #include in C or C++
- Externally-described files and externally-described data structures in
RPG
When the SQL precompiler does not recognize host variables, try
compiling the source. The compiler will not recognize the EXEC SQL statements,
ignore these errors. Verify that the compiler interprets the host variable
declaration as defined by the SQL precompiler for that language.