Microsoft KB Archive/33226

PROCEDURE DIVISION Commands Used in COBOL Version 3.0

PSS ID Number: Q33226 Article last modified on 04-21-1993

3.00 | 3.00 MS-DOS | OS/2

Summary: The following commands can be used in the PROCEDURE DIVISION in COBOL Version 3.0 to control network record/file locking: 1. OPEN …WITH LOCK: Overrides the SELECT clause (located in the FILE-CONTROL paragraph in the ENVIRONMENT DIVISION) and exclusively locks on the file 2. READ 3. READ … WITH LOCK 4. READ … WITH KEPT LOCK: Used for MANUAL multiple-record locking 5. UNLOCK : Releases all the locks on the named file 6. CLOSE : Releases all the locks on the named file 7. COMMIT: Releases all locks currently held in the application

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.