RMODE
RMODE affects the residency mode of generated object programs.
- Default
- RMODE=AUTO
- 24
- Specifies that a program will have RMODE 24 whether NORENT or RENT is specified.
- ANY
- Specifies that a program will have RMODE ANY if RENT is specified, and will receive an error if NORENT is specified.
- AUTO
- Specifies that a program will have RMODE 24 if NORENT is specified, and RMODE ANY if RENT is specified.
Note:
- Enterprise COBOL NORENT programs that pass data to programs running in AMODE 24 must be either compiled with the RMODE(24) option or link-edited with RMODE 24. The data areas for NORENT programs will be above the 16 MB line or below the 16 MB line depending on the RMODE of the program, even if DATA(24) has been specified. DATA(24) applies to programs compiled with the RENT option only.
- Programs compiled with Enterprise COBOL always
have AMODE ANY. The RMODE assigned to a program depends on the RMODE
and RENT|NORENT compiler options. Valid combinations are shown in
the following table.
Table 1. Effect of RMODE and RENT | NORENT on residency mode RMODE setting RENT|NORENT setting Residency mode assigned AUTO RENT RMODE ANY AUTO NORENT RMODE 24 ANY RENT RMODE ANY ANY NORENT Not applicable. A compiler error is issued. 24 RENT RMODE 24 24 NORENT RMODE 24 - The LP(64) compiler option implies RMODE(ANY). If the user explicitly specifies RMODE(24), an informational message issued and the setting is ignored.