When you debug a JVM COBOL application, there is a danger that an RM/COBOL indexed file will become corrupted when debugging ends, as the file is not closed correctly by default.
To ensure the file is closed correctly when debugging ends, you must set the RMFM_PRETEND_FORCE_CLOSED=YES environment variable.