Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

CHECK

The CHECK option specifies whether the compiler should generate special code to detect various programming errors.

Read syntax diagramSkip visual syntax diagram             .-+---+-----------------.
             | '-,-'                 |
             V   .-NOCONFORMANCE-.   |
>>-CHECK--(----+-+-CONFORMANCE---+-+-+--)----------------------><
               | .-NOSTORAGE-.     |
               '-+-STORAGE---+-----'
 

ABBREVIATIONS: STG, NSTG

Specifying CHECK(CONFORMANCE) causes the compiler to generate, under the following circumstances, code that checks at run-time if the attributes of the arguments passed to a procedure match those of the declared parameters

This extra code will not be generated if the NODESCRIPTOR option applies to the procedure or if the block contains ENTRY statements or if the CMPAT(LE) option is in effect.

When you specify CHECK(STORAGE), the compiler calls slightly different library routines for ALLOCATE and FREE statements (except when these statements occur within an AREA). The following built-in functions, described in the PL/I Language Reference, can be used only when CHECK(STORAGE) has been specified:

AMODE(24) is not recommended for Enterprise PL/I applications. For code compiled with the CHECK(STORAGE) option, if you have to use AMODE(24), then you must also specify the HEAP(,,BELOW) runtime option.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)