z/OS MVS Program Management: User's Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


AMODE and RMODE differences

z/OS MVS Program Management: User's Guide and Reference
SA23-1393-00

The differences in linkage editor processing of AMODE and RMODE values are:
  • Values of MIN or 64 for AMODE are not supported.
  • If only one value, either AMODE or RMODE, is specified on the MODE control statement or on the AMODE and RMODE options, the other value is implied according to the following table:
    Value specified Value implied
    AMODE=24 RMODE=24
    AMODE=31 RMODE=24
    AMODE=ANY RMODE=24
    RMODE=24 see note below
    RMODE=ANY AMODE=31
    Note: If only an RMODE of 24 is specified, no overriding AMODE value is assigned. Instead, the AMODE value in the ESD data for the main entry point, a true alias, or an alternate entry point is used in generating its respective directory entry.
  • When building an overlay format load module, the AMODE and RMODE values in the ESD data of the output module are discarded and can be restored only by including the object modules carrying those values.
  • ESD records that specify AMODE(ANY) RMODE(ANY) are handled differently:
    • If the entry point external symbol is marked AMODE ANY/RMODE ANY, associated entry point attributes are assigned according to the following hierarchy:
      • If the load module contains one or more CSECTs marked AMODE 24, the linkage editor assigns an AMODE of 24 to all entry points that have ESD entries marked AMODE ANY/RMODE/ANY.
      • If the load module has an RMODE of 24 and it contains no CSECTS marked AMODE 24, the linkage editor assigns an AMODE of ANY to these entry points.
      • If the load module RMODE is ANY, the linkage editor assigns an AMODE of 31 to these entry points.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014