Error
SQLCODE -504
Cursor not declared
Explanation
Referenced cursor was not declared.
Solution
Add DECLARE CURSOR statement, check cursor name spelling.
Example
OPEN MY_CURSOR -- but DECLARE MY-CURSOR used
Cursor not declared
Referenced cursor was not declared.
Add DECLARE CURSOR statement, check cursor name spelling.