PL/I · Exception

ONCODE 340: SIZE

What does ONCODE 340: SIZE mean in PL/I?

An arithmetic assignment produced a value that does not fit in the target variable's declared size, distinct from FIXEDOVERFLOW in that this covers the assignment itself rather than the operation that produced the value.

ONCODE 340: SIZEIBM Enterprise PL/I for z/OS · PL/I for AIX

Condition

An arithmetic assignment produced a value that does not fit in the target variable's declared size, distinct from FIXEDOVERFLOW in that this covers the assignment itself rather than the operation that produced the value.

Fix

Check the target variable's declared precision against the range of values the calculation can actually produce, including intermediate results if the expression has multiple steps.

Pending source verification. Not yet checked against official documentation.

Related exception