Product Documentation

FairCom RTG COBOL Edition User's Guide

Previous Topic

Next Topic

<detectlock>

This configuration option simulates the behavior of the Micro Focus DETECT-LOCK compiler directive:

  • DETECT-LOCK - If a READ statement reads a record locked by another program, it reads the record successfully and returns an error.
  • NO DETECT-LOCK - If a READ statement reads a record locked by another program, it reads the record successfully and returns no error.

The <detectlock> option defaults to "no" which means that no error is returned when trying to retrieve a record locked by another user if the LOCK MODE is MANUAL and the READ operation does not have an explicit WITH LOCK option.

Example

<detectlock>yes</detectlock>

TOCIndex