IBM Enterprise COBOL for z/OS interoperability with JMP and JBP applications

With the IBM Enterprise COBOL for z/OS support for COBOL and Java™ language interoperability, you can write Java and Object-Oriented (OO) COBOL applications that execute in a Java dependent region and invoke existing COBOL programs.

With this support, you can:

  • Call an object-oriented (OO) COBOL application from a Java application by building the frontend application, which processes messages, in Java, and the back end, which processes databases, in OO COBOL.
  • Build an OO COBOL application containing a main routine that can invoke Java routines.

You can access COBOL code in a JMP or JBP region because Enterprise COBOL provides object-oriented language syntax that enables you to:

  • Define classes with methods and data implemented in COBOL
  • Create instances of Java and COBOL classes
  • Invoke methods on Java and COBOL objects
  • Write classes that inherit from Java classes or other COBOL classes
  • Define and invoke overloaded methods

In IBM Enterprise COBOL for z/OS programs, you can call the services provided by the JNI to obtain Java-oriented capabilities in addition to the basic OO capabilities available directly in the COBOL language.

In IBM Enterprise COBOL for z/OS classes, you can code CALL statements that interface with procedural COBOL programs. Therefore, COBOL class definition syntax can be especially useful for writing wrapper classes for procedural COBOL logic, enabling existing COBOL code to be accessed from Java.

Java code can create instances of COBOL classes, invoke methods of these classes, and can extend COBOL classes.

Related Reading: For details building applications that use IBM Enterprise COBOL for z/OS and that run in an IMS dependent region, see Enterprise COBOL for z/OS Programming Guide.