AMODE considerations

This topic describes different possible AMODE configurations for non-OO COBOL applications that interoperate with Java™.

Non-OO COBOL applications that interoperate with Java can run in any one of the following three AMODE configurations:
  1. AMODE 31 (31-bit) COBOL and AMODE 31 (31-bit) Java
  2. AMODE 31 (31-bit) COBOL and AMODE 64 (64-bit) Java
  3. AMODE 64 (64-bit) COBOL and AMODE 64 (64-bit) Java

AMODE 31 (31-bit) COBOL and AMODE 31 (31-bit) Java

To build a COBOL/Java interoperable application that consists of AMODE 31 COBOL and AMODE 31 Java, compile COBOL user programs with the LP(32) option in effect, which is the default when the LP option is not specified, and specify the -m PURE31 option when running the cjbuild utility. Compile all Java files in the application with the Java compiler from the 31-bit Java SDK.

AMODE 31 (31-bit) COBOL and AMODE 64 (64-bit) Java

To build a COBOL/Java interoperable application that consists of AMODE 31 COBOL and AMODE 64 Java, compile COBOL user programs with the LP(32) option in effect, which is the default when the LP option is not specified, and specify the -m MIX_31_64 option when running the cjbuild utility. Compile all Java files in the application with the Java compiler from the 64-bit Java SDK.

AMODE 64 (64-bit) COBOL and AMODE 64 (64-bit) Java

To build a COBOL/Java interoperable application that consists of AMODE 64 COBOL and AMODE 64 Java, compile COBOL user programs with the LP(64) option in effect, and specify the -m PURE64 option when running the cjbuild utility. Compile all Java files in the application with the Java compiler from the 64-bit Java SDK.