You can structure applications that use object-oriented COBOL syntax in one of three ways.
An OO application can begin with:
Under UNIX, you can run the application by specifying the name of the linked module (which should match the program name) at the command prompt. You can also bind the program as a module in a PDSE and run it in JCL using the EXEC PGM statement.
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.
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.
Structure an OO application this way if you want to:
Examples: COBOL applications that run using the java command