Demonstration Programs

Your COBOL development system includes some demonstration programs that illustrate different aspects of calling procedural COBOL from Java. These demonstration programs are contained in the directory in your product installation. Each directory includes all relevant program files, as well as a readme.txt file to explain the programs in more detail.

The following table shows the directories containing the demonstration programs and gives a brief description of the purpose of the demonstration:

Directory Illustrates
arrays Reading a Java array from COBOL. Updating a Java array from COBOL.
pi Calculating pi. Passing numbers back to Java via Strings.
primtypes Passing primitive Java types to COBOL. Updating primitive Java types from COBOL.
record Writing a simple COBOL Java object. Receiving structures in a COBOL program from Java objects that implement the DataType interface. Passing parameters by reference.