COBCH1865 Cannot use object references in FILE SECTION

The program declares an object reference in the file section. This is not allowed when compiling for JVM COBOL code.

Resolution:

Correct the code to remove the object reference declaration from the file section and recompile as before, or recompile for native code instead of JVM COBOL code.

Example:

The following example shows the R1 object declared in the FD.

       select f1 assign "MyFile".
       fd f1.
       01 r1 object.