JVM= parameter for procedures

Use the JVM= parameter in procedures to specify the addressing mode of the Java virtual machine (JVM) that is to be loaded into the region and the addressing mode of the associated Language Environment (LE). Valid values are 31, 64, and 3164. The default value is 31.

31

Specifies that a 31-bit Language Environment enclave and a 31-bit JVM are to be created in the dependent region. When JVM=31, IMS module DFSJVM00 is used to load a JVM.

64

Specifies that a 64-bit Language Environment enclave and a 64-bit JVM are to be created in the dependent region. When JVM=64, IMS module DFSJVM64 is used to load a JVM.

Restriction: The value 64 is valid only for the Java Batch Processing (JBP) regions and Java Message Processing (JMP) regions.

3164

Specifies that a primary 31-bit Language Environment enclave plus a secondary Language Environment managed 64-bit enclave and 64-bit JVM are to be created in the dependent region. This setup is intended to allow 31-bit COBOL code to call 64-bit Java code or 64-bit Java code to call 31-bit COBOL code. When JVM=3164, IMS module DFSJVM36 is used to load a JVM.

Important: When you specify JVM=3164, verify that the IMS SDFSJLIB data set is part of the dependent region's STEPLIB concatenation. If it is not, the dependent region terminates with ABEND U0101 and Register 15 with the value 'E'x.

You can set the JVM= parameter using the DFSOPT DD statement in IMS-supplied procedures. The syntax for the JVM= parameter is:

JVM=31|64|3164 (The default is 31.)

For more information, see DFSOPT DD in DD statements for IMS procedures.

The LIBPATH= specified in the //STDENV DD statement or in the ENVIRON= PROCLIB member must point to the Java runtime libraries that match the addressing mode specified on the JVM= parameter: 31-bit Java installation for JVM=31, or 64-bit Java installation for JVM=64 and JVM=3164.

The ENVIRON= parameter is ignored if the //STDENV DD statement is specified on the dependent region procedure.

Important: When you specify JVM= for the JMP region, you must explicitly specify the MAXTHRD= and MINTHRD= positional parameters before the JVM= parameter.