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

SQLCODE -538

Foreign key column count mismatch

Explanation

Foreign key and primary key column counts do not match.

Solution

Ensure foreign key references same number of columns as primary key.

Example

FK references only part of composite PK