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

SQLCODE -652

UNIQUE index violation

Explanation

Insert/Update would violate unique index.

Solution

Check for duplicate key values before insert, handle duplicates.

Example

INSERT duplicate value in unique indexed column