Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Image description: compiling and linking a class definition

This image shows a COBOL class definition and the commands that you use to compile and link the class. This text conveys all the information contained in the image.

The following is the COBOL class definition:

Identification division.
Class-id Manager inherits Employee.
Environment division.
Configuration section.
Repository.
      Class Manager is “Manager”
      . . .

End class Manager.

The following are the steps for compiling and linking this class definition:

  1. Use the following command to compile the COBOL class definition Manager.cbl:

    cob2 -c -qthread Manager.cbl

    This command produces the Java class definition Manager.java and the object file Manager.obj.

  2. Use the following command to compile the Java class definition Manager.java:

    javac Manager.java

    This command produces the executable component Manager.class.

  3. Use the following command to link the object file Manager.obj:

    cob2 -dll Manager.obj

    This command produces the executable DLL module Manager.dll.

End of image description.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)