General rules
class-name-1 and class-name-2 must conform to the normal rules of formation for a COBOL user-defined word, using single-byte characters.
See REPOSITORY paragraph for details on specifying a class-name that is part of a Java™ package or for using non-COBOL naming conventions for class-names.
You cannot include a class definition in a sequence of programs or other class definitions in a single compilation group. Each class must be specified as a separate source file; that is, a class definition cannot be included in a batch compile.