AMODE

Set the memory address type.
Restriction: This topic applies to Windows environments only.

Syntax:

AMODE({24|31})

Parameters:

24
Use three-byte (24-bit addresses), compatible with memory below the line on the mainframe.
31
Use 31-bit addresses, compatible with memory above and below the line on the mainframe.

Properties:

Default: AMODE(31)

Build Settings:

Choose an AMODE setting from the Addressing mode list on the Assembler tab of your project properties Assembler page.

Comments:

All COBOL programs passing parameters to Assembler subroutines must be compiled with the AMODE(24) or AMODE(31) compile option themselves or a SOC5 (addressing error) abend occurs at call time. Unless they are specifically coded to accept ASCII data, Assembler subroutines expect all alphanumeric data to be EBCDIC, so the calling COBOL module should be compiled with the CHARSET(EBCDIC) option to override the default of CHARSET(ASCII).