RENT

RENT affects whether generated object code is reentrant.

Syntax

Read syntax diagramSkip visual syntax diagramRENT=*YESNO
Default
RENT=YES
YES
Indicates that generated object code is to be reentrant. Using RENT=YES enables the program to be placed in shared storage for running above the 16 MB line. However, this option causes the compiler to generate additional code to ensure that the application program is reentrant.
NO
Indicates that generated object code is not to be reentrant.
Note:
  • Compile programs with RENT if they will be run in virtual storage addresses above 16 MB.
  • Execution of nonreentrant programs above 16 MB is not supported. Programs compiled with NORENT must be RMODE 24.
  • The RENT compiler option is required for programs that are run under CICS®.
  • The RMODE assigned to a program depends on the RENT|NORENT and RMODE compiler options. Valid combinations are shown in the following table.
    Table 1. Effect of RENT and RMODE on residency mode
    RENT|NORENT
    setting
    RMODE
    setting
    Residency
    mode assigned
    RENT AUTO RMODE ANY
    RENT ANY RMODE ANY
    RENT 24 RMODE 24
    NORENT AUTO RMODE 24
    NORENT ANY Compiler option conflict
    NORENT 24 RMODE 24
  • If the THREAD compiler option is specified, the RENT compiler option must also be specified. If THREAD and NORENT are specified at the same level of precedence, the RENT option is forced on.

For further details, see RENT in the Enterprise COBOL Programming Guide.