Desenvolvido por DORNELLES Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com
SQLCode -776
Causa
USE OF CURSOR cursor-name IS NOT VALID.
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.