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

Status Code 00100

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

A built-in string operation such as %SUBST, or an array-related string reference, used a starting position or length that falls outside the bounds of the target field.

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

Condition

A built-in string operation such as %SUBST, or an array-related string reference, used a starting position or length that falls outside the bounds of the target field.

Fix

Validate the position and length arguments against %LEN() of the target field before calling %SUBST, especially when they're computed dynamically from other variables.

Related file status code