-decimal

Sets the conditions under which a FIXEDOVERFLOW is raised for a FIXED DECIMAL overflow.

Syntax

-decimal "sub-option[,sub-option[...]]"

Parameters

sub-option can be any of the following:

[no]foflonasgn
Raise FIXEDOVERFLOW condition when the assignment to a FIXED DECIMAL variable causes the FIXED DECIMAL overflow.

Default: foflonasgn

[no] foflondiv
Raise FIXEDOVERFLOW condition when the result of a division operation caused the FIXED DECIMAL overflow.

Default: nofoflondiv

[no] foflonmult
Raise the FIXEDOVERFLOW condition when the result of a multiplication operation causes FIXED DECIMAL overflow.

Default: nofoflonmult

[no]forceodd
Use the extra-high order nibble allocated to a FIXED DECIMAL variable with an even precision (this is compatible with mainframe PL/I behavior).
Note: noforceodd maintains compatibility with versions of PL/I earlier than 8.0.

Default: forceodd

[no]validate
Validate the contents of FIXED DECIMAL variables and trigger an ERROR condition with an oncode of 8097 if invalid data is present.
Note: novalidate improves the speed of execution at expense of validation and detection.

Default: validate

[no]forcedsign

This option has no effect. The implicit behavior of Open PL/I is to assign the value 0xC to the sign nibble of the result when a FIXED DECIMAL arithmetic result with the value zero is generated.

Default: noforcedsign