The loader's processing of AMODE and RMODE is similar to the linkage
editor's. The loader accepts AMODE and RMODE specifications from:
- Object modules
- Load modules
- PARM field of the JCL EXEC statement
Unlike the linkage editor, the loader does not accept MODE control
statements from the SYSLIN data set, but it does base its loading
sequence on the sequence of items in SYSLIN.
The loader passes the AMODE value to MVS™. The
loader processes the RMODE value as follows. If the user specifies
an RMODE value in the PARM field, that value overrides any previous
RMODE value. Using the value of the first RMODE it finds in the first
object module or load module it encounters that is not for a common
section, the loader obtains virtual storage for its output. As the
loading process continues, the loader may encounter a more restrictive
RMODE value. If, for example, the loader begins loading based on
an RMODE ANY indicator and later finds an RMODE 24 indicator in a
section other than a common section, it issues a message and starts
over based on the more restrictive RMODE value.
Figure 1 shows loader processing of AMODE and RMODE.
Figure 1. AMODE and RMODE
Processing by the Loader