Error and warning messages during a compile of application programs
that use SQL
The conditions described in the following topics could produce
an error or warning message during an attempted compile process.
Error and warning messages during a PL/I, C, or C++ Compile
If EXEC SQL starts before the left margin (as specified with the MARGINS parameter, the default), the SQL precompiler will not recognize the statement as an SQL statement. Consequently, it will be passed as is to the compiler.
Error and warning messages during a COBOL compile
If EXEC SQL starts before column 12, the SQL precompiler will not recognize the statement as an SQL statement. Consequently, it will be passed as is to the compiler.
Error and warning messages during a RPG compile
If EXEC SQL is not coded in positions 8 through 16, and preceded with the '/' character in position 7, the SQL precompiler will not recognize the statement as an SQL statement. Consequently, it will be passed as is to the compiler.