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.
- Click
.
- In the COBOL JVM Application section, select the application's main executable.
- Select the
Environment tab.
- Click
New.
- In the
New Environment Variable dialog box, enter the following, then click
OK.
- Name:
RMFM_PRETEND_FORCE_CLOSED
- Value:
YES
- Click
Apply, then click
Debug to rebuild and debug your project.