Include code in ILE RPG applications that use SQL

SQL statements and RPG specifications can be included by using the following SQL statement.

C/EXEC SQL INCLUDE member-name
C/END-EXEC

RPG directives are handled by the SQL precompiler according to the value of the RPG preprocessor options parameter (RPGPPOPT).

Related reference
Use directives in ILE RPG applications that use SQL