When your data files are stored in a datastore, the type of record locking in effect can be controlled by the MFDBFH_RECORD_LOCKING environment variable.
By default (that is, when this variable is not explicitly set), record locking is under the control of the Micro Focus Database File Handler (MFDBFH), where record locks are maintained in a separate lock table. When using this locking mode, the behavior of record locking COBOL file operations closely follows the same behavior when using FileShare.
When MFDBFH_RECORD_LOCKING=database is in effect, MFDBFH uses the native record locking mechanism of the database engine to establish and test locks on the data file records directly. This does increase performance, but at the cost of the locking behavior not matching traditional COBOL record locking behavior exactly. For example, database locking may decide to acquire a lock against an entire page or table, in which case records may appear as locked even though they were not explicitly locked by the user application. Additional database-specific differences in behavior are listed below.
Microsoft SQL Server