COBOL · DB2 SQLCODE
What does SQLCODE -502 mean in COBOL?
Cursor already open. An OPEN was issued for a cursor that is already open.
Cursor already open. An OPEN was issued for a cursor that is already open.
Check for a duplicate OPEN CURSOR statement, often from error-handling logic that retries OPEN without first confirming the cursor was actually closed.