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

Status 21

Sequence error

Explanation

Records not in ascending key order on sequential WRITE to indexed file.

Solution

Ensure records are sorted by primary key before sequential WRITE.