Microsoft KB Archive/43637

EXCLUSIVE Locking of an INPUT FILE, “File Share Syntax Error”

PSS ID Number: Q43637 Article last modified on 04-20-1993

2.00 2.10 2.20 MS-DOS

Summary: You cannot specify EXCLUSIVE locking in either the READ or OPEN statements for a file OPENed for INPUT in COBOL Versions 2.0, 2.1, and 2.2. This feature is incorrectly documented on Page 402 of the “Microsoft COBOL Reference Manual” for Versions 2.x. If you try to designate LOCKING as EXCLUSIVE, you will get the compile-time error “FILE SHARE SYNTAX ERROR”. To work around this problem, the file can be OPENed for I-O. You can open a file with LOCKING as EXCLUSIVE in either the SELECT statement or on the OPEN statement for OUTPUT, I-O, or EXTEND.

Additional reference words: 2.00 2.10 2.20 Copyright Microsoft Corporation 1993.