Message Oracle PCC-02373 - Invalid declaration in EXEC SQL DECLARE section

ERRORInvalid declaration in EXEC SQL DECLARE section
CAUSEAn improper declaration was placed in a Declare Section. This message is usually caused by including an EXEC SQL TYPE or EXEC SQL VAR declaration in a Declare Section.
ACTIONMove the declaration outside of the SQL DECLARE section.