cursor '%1' not previously declared

Message value

Message type

2627

Error

Probable cause

An Embedded SQL cursor name has been used (in a FETCH, OPEN, CLOSE, etc.) without first being declared.