Microsoft KB Archive/38119

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 19:21, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q38119 to Microsoft KB Archive/38119 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Record Is Locked Until READ or WRITE Different Record

PSS ID Number: Q38119 Article last modified on 11-19-1988

2.00 2.10 2.20 | 2.10 2.20 MS-DOS | XENIX

Summary: Page 398 of the “Microsoft COBOL Reference Manual” for Versions 2.x of either XENIX or MS-DOS, states the following: “The AUTOMATIC record LOCKING mode automatically locks any record that is the target of a READ statement. The same record is automatically unlocked by the next READ, WRITE, REWRITE, or CLOSE.” The first sentence is clear, but the phrasing of the second sentence may be misleading. The record is actually locked for as long as that record’s information is held in the FD Section variable name. To unlock a record you must read or write to a different record or CLOSE the file. This information applies to all versions of Microsoft COBOL and is just a clarification of the documentation.

Copyright Microsoft Corporation 1988.