Oracle Message PCC-02362 - Host variable not declared within SQL DECLARE section

ERRORHost variable not declared within SQL DECLARE section
CAUSEWhen MODE=ANSI is specified at precompile time, all host variables must be declared inside Declare Sections. Remember that MODE=ANSI refers to ANSI SQL, not ANSI C.
ACTIONAdd the EXEC SQL BEGIN DECLARE SECTION... EXEC SQL END DECLARE SECTION statements around all host variable declarations.