Optimizes the code generated for subscripts.
Note: This directive is supported for native COBOL only.
Syntax:
>>-.---.-.----.--BOUNDOPT------------------><
+-/-+ +-NO-+
Properties:
Default:
|
BOUNDOPT
|
Phase:
|
Generate
|
$SET:
|
Initial
|
Dependencies:
Set to NOBOUNDOPT at end by BOUND.
Example:
For a table with 50 entries, a PIC 9(3) subscript is treated as PIC 9(2), with the most significant digit ignored.
Comments:
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.