ERROR | SQL identifier was not declared as a cursor |
CAUSE | A cursor name was used in an OPEN, FETCH, or CLOSE statement that had not been DECLAREd. |
ACTION | Check that all SQL cursor names have been declared. Remember that cursors are identifiers, not variables, and that they are local to the precompilation unit. |