HP 3000 Manuals

Table Bound Checking [ COBOL/HP-UX Compatibility Guide for the Series 700 and 800 ] MPE/iX 5.0 Documentation


COBOL/HP-UX Compatibility Guide for the Series 700 and 800

Table Bound Checking 

If you attempt to run a program under this COBOL system which contains a
subscript value greater than the size of the table to which it refers,
the Run-Time System will produce an error indicating this.  Under the
RM/COBOL system, however, no such table bound checking is done.
Therefore, if you wish to disable table bound checking in this COBOL
system, 
you must use the NOBOUND directive.  See your COBOL System Reference for
details of this directive.

If you use the NOBOUND directive when running intermediate code, you will
be able to access data beyond a table's bounds by using a subscript value
greater than the table size.  Use of the NOBOUND directive when you are
producing intermediate code will also disable bound checking when running
generated code.  However, if you wish to access data beyond a table's
bounds when running generated code, you must also use the native code
generator directive NOBOUNDOPT. Note that when you use 
the NOBOUNDOPT directive, performance will be reduced.



MPE/iX 5.0 Documentation