-776   USE OF CURSOR cursor-name IS NOT VALID

Explanation

Cursor cursor-name is specified as the cursor name on a FOR statement in an SQL procedure. The cursor cannot be specified on a CLOSE, FETCH, or OPEN statement within the FOR statement.

System action

The statement cannot be processed.

Programmer response

Remove the CLOSE, FETCH, or OPEN statement.

SQLSTATE

428D4