Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
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 |