Product Documentation

FairCom RTG COBOL User Guide

Previous Topic

Next Topic

<forcedelete>

The <forcedelete> configuration option controls the behavior of DELETE FILE operations. The behavior of DELETE FILE in isCOBOL and ACUCOBOL is to return a "corrupted file" error (98) and not delete the orphan file if the index file is missing. The DELETE FILE behavior in Micro Focus is to delete the orphan file.

Accepted Values

Value

Effect

Synonyms

yes

Forces DELETE FILE operations to delete any orphan file left (similar to Micro Focus behavior). This is the default for ExtFH drivers.

y, true, on, 1

no

Causes DELETE FILE to return an error and leave the orphan file on disk (similar to isCOBOL and ACUCOBOL behavior). This is the default for non-ExtFH drivers.

n, false, off, 0

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

The logic returns success (COBOL error 0) on a DELETE FILE operation if <forcedelete> is enabled (default for FairCom RTG ExtFH driver) and an orphan data file is detected. Before this change, 0 was returned only for orphan index files and an error was returned for orphan data files. That matched the behavior of old Micro Focus COBOL products, however, more recent Micro Focus products always return 0.

TOCIndex