Debugging JVM COBOL Using RM/COBOL Indexed Files

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 environment variable.

  1. Click Run > Debug Configurations.
  2. In the COBOL JVM Application section, select the application's main executable.
  3. Select the Environment tab.
  4. Click New.
  5. In the New Environment Variable dialog box, enter the following, then click OK.
    • Name: RMFM_PRETEND_FORCE_CLOSED
    • Value: YES
  6. Click Apply, then click Debug to rebuild and debug your project.