Admin Production rocket
Current Publication

LOCKTYPE

NetExpress Bookshelf Help V5.1 WrapPack 1
Rocket® Net Express™ (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

LOCKTYPE

Specifies the type of record locking.

Syntax:
>>-.---.--LOCKTYPE--"integer"--------------><
   +-/-+
Parameters:
integer The type of locking.
0 Programs can read locked records, but not access them in other ways. This is the standard method with this COBOL system.
1 Programs cannot access locked records at all. This is as in languages other than COBOL.
2 Creates a new file with the same basename as the file being opened but with a .lck extension. Any record locks are recorded in this file. This enables the File Handler to read and write to files up to 4 gigabytes in size regardless of whether the file is shared or locked. You cannot set this value for striped files.
Properties:
Default: LOCKTYPE"0"
Phase: Syntax check
$SET: Initial
Comments:

This directive only has an effect if the CALLFH directive is used.

See Also:

Related Topics