RPG (IBM i / AS/400) · File status code
What does Status Code 01071 mean in RPG (IBM i / AS/400)?
During matching-record or control-break processing, a numeric key field on an input record fell out of the ascending (or descending) sequence RPG expected relative to the previously read record.
During matching-record or control-break processing, a numeric key field on an input record fell out of the ascending (or descending) sequence RPG expected relative to the previously read record.
Verify the file's key definition and access path really enforce the sequence the program relies on, and check for manual data loads or restores that bypassed the keyed access path.