AMODE and RMODE assembler instructions

The AMODE instruction specifies the addressing mode to be associated with a CSECT in an object module. The format of the AMODE instruction is:
Name Operation Operand
Any symbol or blank AMODE 24/31/ANY

The name field associates the addressing mode with a control section. If there is a symbol in the name field of an AMODE statement, that symbol must also appear in the name field of a START, CSECT, or COM statement in the assembly. If the name field is blank, there must be an unnamed control section in the assembly.

Similarly, the name field associates the residency mode with a control section. The RMODE statement specifies the residency mode to be associated with a control section. The format of the RMODE instruction is:
Name Operation Operand
Any symbol or blank RMODE 24/ANY

Both the RMODE and AMODE instructions can appear anywhere in the assembly. Their appearance does not initiate an unnamed CSECT. There can be more than one RMODE (or AMODE) instruction per assembly, but they must have different name fields.

The defaults when AMODE, RMODE, or both are not specified are:
Specified Defaulted
Neither AMODE 24 RMODE 24
AMODE 24 RMODE 24
AMODE 31 RMODE 24
AMODE ANY RMODE 24
RMODE 24 AMODE 24
RMODE ANY AMODE 31