OpenESQL returns a SQLCODE of -19516 if the cursor is already open and the program is also compiled with directive NOANSI92ENTRY.
>>-.----.--CHECKDUPCURSOR----------------->< +-NO-+
None
Default: | NOCHECKDUPCURSOR |
The default behavior when a program is compiled with NOANSI92ENTRY is to automatically close the cursor and then re-open it.