Microsoft KB Archive/33229

[NO]FILESHARE Compiler Directive for COBOL 3.0

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

3.00 | 3.00 MS-DOS | OS/2

Summary: The FILESHARE directive, when set, causes the default-locking mode to become AUTOMATIC rather than EXCLUSIVE for files in a multi-user (network) environment, and automatically locks records on a WRITE or REWRITE statement when the program locks multiple records. Specifying FILESHARE is equivalent to specifying WRITELOCK and AUTOLOCK. Specifying NOFILESHARE is equivalent to specifying NOAUTOLOCK and NOWRITELOCK. Please note that with NOFILESHARE (the default), record locks are only acquired on a READ statement. No other COBOL statement can acquire a lock with NOFILESHARE in effect. For more information, please see Pages 2-12 through 2-64 of the “Microsoft COBOL Compiler Version 3.0 Operating Guide.”

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.