Master Mainframe Technologies - COBOL, JCL, DB2, VSAM, CICS & More
ABEND Codes SQLCODEs File Status Interview Prep Contact
← Back to SQLCODE Reference
Error

SQLCODE -508

CLOSE cursor already closed

Explanation

Attempting to close a cursor that is already closed.

Solution

Check program logic, ensure CLOSE is not executed twice.

Example

CLOSE cursor executed in loop