RTCHECK

The RTCHECK option specifies that extra code is generated to force the ERROR condition to be raised if a null pointer is dereferenced, that is, if the pointer is used to change or obtain the value of a variable.

Read syntax diagramSkip visual syntax diagram
               .-NONULLPTR-.      
>>-RTCHECK--(--+-NULLPTR---+--)--------------------------------><
               '-NULL370---'      

NULLPTR
Extra code is generated to force the ERROR condition to be raised if a null pointer, that is, a pointer equal to SYSNULL(), is dereferenced. To use NULLPTR, you must specify ARCH(8).
NULL370
Extra code is generated to force the ERROR condition to be raised if a pointer equal to the old NULL() value is dereferenced. The old NULL() value is the hexadecimal value of 'FF000000'x. To use NULL370, you must specify ARCH(8) or greater.
NONULLPTR
No extra code is generated to force the ERROR condition to be raised if a null pointer is dereferenced.

The default is RTCHECK(NONULLPTR).

Note: When a null pointer is dereferenced, a compare-and-trap data exception occurs.