Application programming on z/OS
Previous topic | Next topic | Contents | Glossary | Contact z/OS | PDF


Structuring OO applications

Application programming on z/OS

You can structure applications that use object-oriented COBOL syntax in one of three ways.

An OO application can begin with:

  • A COBOL program, which can have any name.
  • A Java™ class definition that contains a method called main. You can run the application with the Java command, specifying the name of the class that contains main and zero or more strings as command-line arguments.
  • A COBOL class definition that contains a factory method called main. You can run the application with the Java command, specifying the name of the class that contains main and zero or more strings as command-line arguments.

Related reading: For more information about using COBOL on z/OS®, see the IBM® publications Enterprise COBOL for z/OS and OS/390® V3R2 Language Reference, SC27-1408, and Enterprise COBOL for z/OS and OS/390 V3R2 Programming Guide, SC27-1412.





Copyright IBM Corporation 1990, 2010