You can use the INCLUDE FILE statement to include source code from a file <file_name> in your application program. The precompiler places this text at the location of the INCLUDE FILE statement in the source code. The text itself cannot contain an INCLUDE FILE or INCLUDE DECLARE Statement.
EXEC SQL INCLUDE <file_name>;
If necessary, you can use EXEC SQL INCLUDE sqlca to select the position in the source code at which you want the precompiler to declare the structure sqlca. This statement ensures compatibility with other embedded SQL compilers. If you do not select a position, the precompiler places the declaration at the start of the program.