RPG (IBM i / AS/400) · File status code
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.
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.
Validate the position and length arguments against %LEN() of the target field before calling %SUBST, especially when they're computed dynamically from other variables.