Supported RPG Features

The FIXNBR keyword on CTL-OPT (or H-spec) controls how invalid numeric data read from externally-described files is handled. Accepts one or both of the following values (colon-separated):

Value Effect
*ZONED Silently correct invalid zoned decimal data (set to zero)
*INPUTPACKED Silently correct invalid packed decimal input data (set to zero)
*NONE (default) No fixing; invalid data causes a decimal data error

When active, invalid decimal data read from a file reads as zero instead of raising status 00907, matching IBM i's correction behavior.

CTL-OPT FIXNBR(*ZONED:*INPUTPACKED);