Product Documentation

c-treeRTG V2 Update Guide

Previous Topic

Next Topic

<forcedelete> Configuration Option to Force Deletion of Orphan Files

The COBOL operation DELETE FILE fails with COBOL error 98 (corrupted file) on orphan files that are data files that are missing their relative index file. The DELETE FILE operation on Micro Focus instead, deletes the orphan files and returns successful.

The new configuration option <forcedelete> forces DELETE FILE operations to delete any orphan file left when set to "yes". When it is set to "no", it causes DELETE FILE to return an error and leave the orphan file on disk.

By default, <forcedelete> is set to "no" except for ExtFH drivers where it is set to "yes" to match Micro Focus COBOL behavior.

Before the introduction of <forcedelete>, the default behavior for c-treeRTG ExtFh driver was to fail DELETE FILE on orphan data files (missing its index file) and succeed on orphan index files (missing its data file) to match the behavior of old Micro focus COBOL products. More recent Micro Focus product behavior is to remove any orphan file and return success.

TOCIndex