CHECKREFMOD

Turns on bounds checking for reference modification in .NET COBOL.
Restriction: This directive is supported for .NET COBOL only.

Syntax:

>>-.---.---.---CHECKREFMOD-.----------------.--.---><
   +-/-+   |               +--NOZEROLENGTH--+  |
           +-NOCHECKREFMOD---------------------+

Parameters:

NOZEROLENGTH
At both compile time and run time, reference modified items are checked to ensure they are not referencing an area outside the table. This is equivalent to the effect on reference modified items of the directive SSRANGE"2".

If no parameter is set, the effect is the same as CHECKREFMOD"NOZEROLENGTH", except that reference modifier lengths of zero are permitted at run time. However, if a reference modified length is known to be zero at compile time, an error is generated. This is equivalent to the effect on reference modified items of the directive SSRANGE"3".

Properties:

Default: NOCHECKREFMOD
Phase: Check
$SET: Initial