RPG (IBM i / AS/400) · File status code

Status Code 01041

What does Status Code 01041 mean in RPG (IBM i / AS/400)?

While loading a compile-time or pre-runtime array or table, the entries in the source data were not in the ascending or descending sequence declared for that array/table with the ASCEND or DESCEND keyword.

Status Code 01041IBM i / OS/400 · ILE RPG

Condition

While loading a compile-time or pre-runtime array or table, the entries in the source data were not in the ascending or descending sequence declared for that array/table with the ASCEND or DESCEND keyword.

Fix

Sort the array/table source data to match the declared sequence keyword, or drop ASCEND/DESCEND if the data is intentionally unordered.

Related file status code