In this blog post, you’ll learn more about the Sybase Error Cursor has not been declared and the reason for receiving this error
Sybase SQL Error Message
Cursor has not been declared
Reason for this Error
You attempted to OPEN a cursor that has not been declared.