Database Error Messages

PCC-02335

body of cursor must name statement identifier

Cause

In 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.


Action

This error message is followed by another message that gives the line and column of the reference to the statement. Recode the application.