PL/I · Exception

ONCODE 350: STRINGRANGE

What does ONCODE 350: STRINGRANGE mean in PL/I?

A program-checkout condition: an attempt was made to reference a substring position or length that falls outside the bounds of the string it is applied to.

ONCODE 350: STRINGRANGEIBM Enterprise PL/I for z/OS · PL/I for AIX

Condition

A program-checkout condition: an attempt was made to reference a substring position or length that falls outside the bounds of the string it is applied to.

Fix

Check the start position and length arguments passed to SUBSTR against the actual current length of the string variable, especially for strings whose length varies at runtime.

Pending source verification. Not yet checked against official documentation.

Related exception