Restriction: This directive is supported for native COBOL only.
Optimizes the code generated for subscripts.
>>-.---.-.----.--BOUNDOPT------------------>< +-/-+ +-NO-+
None
| Default: | BOUNDOPT |
| Phase: | Generate |
| $SET: | Initial |
Set to NOBOUNDOPT at end by BOUND.
If BOUNDOPT is used, subscripts can be optimized on the assumption that they do not exceed the bounds of the table. In particular, any digits in a subscript above the size of the table may be ignored.
Can only be used when NOBOUND is specified. NOBOUNDOPT must be specified if a program references beyond the end of a table.
For a table with 50 entries, a PIC 9(3) subscript is treated as PIC 9(2), with the most significant digit ignored.