Entering content frame

Background documentation INCLUDE FILE Statement Locate the document in its SAP Library structure

Use

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.

Syntax

EXEC SQL INCLUDE <file_name>;

Note

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.

 

Leaving content frame