RENT

Your code is "naturally reentrant" if it does not alter any of its static variables. The RENT option specifies that the compiler is to take code that is not naturally reentrant and make it reentrant.

For a detailed description of reentrancy, see the z/OS Language Environment Programming Guide. If you use the RENT option, the Linkage Editor cannot directly process the object module that is produced; you must use PDSEs.

Note: Under the LP(64) option, the RENT option is ignored; effectively, RENT is always on.
Read syntax diagramSkip visual syntax diagram
   .-NORENT-.   
>>-+-RENT---+--------------------------------------------------><

The NORENT option specifies that the compiler is not to specifically generate reentrant code from nonreentrant code. Any naturally reentrant code remains reentrant.

If you link a module (either MAIN or FETCHABLE) containing one or more programs compiled with the RENT option, you must specify DYNAM=DLL and REUS=RENT on the link step.

If you specify the options NORENT and LIMITS(EXTNAME(n)) (with n <= 7), the text decks generated by the compiler will have the same format as those generated by the older PL/I compilers. If you use any other options, you must use PDSEs.

The code generated under the NORENT option might not be reentrant unless the NOWRITABLE option is also specified.

The use of the NORENT does preclude the use of some features of the compiler. In particular, note the following considerations:

You can mix RENT and NORENT code subject to the following restrictions:

Given the above restrictions, the following is still valid: