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

Status Code 01051

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

The number of elements supplied in the compile-time data for an array or table exceeded the number of elements declared for it (DIM or %ELEM) in the definition specs.

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

Condition

The number of elements supplied in the compile-time data for an array or table exceeded the number of elements declared for it (DIM or %ELEM) in the definition specs.

Fix

Raise the declared element count to match the source data, or trim the extra data lines so the counts line up exactly.

Related file status code