Oracle Message PCC-02335 - body of cursor must name statement identifier

ERRORbody of cursor must name statement identifier
CAUSEIn a Dynamic SQL Method 4 application, the DECLARE... CURSOR statement must name a statement identifier that has been PREPAREd in a preceding statement. The PREPARE statement must physically (not logically) precede the DECLARE command.
ACTIONThis error message is followed by another message that gives the line and column of the reference to the statement. Recode the application.