Microsoft KB Archive/31925

Net Server with File Status 10 Cannot READ Appended Records

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

2.10 2.20 MS-DOS

Summary: A network server with file status 10 cannot READ appended records. The following demonstrates this problem: 1. A network server OPENs a datafile, READs to the end-of-file (file status 10), and leaves the datafile OPEN. 2. A network workstation OPENs the same datafile for EXTEND and appends records to the end of the datafile and executes a CLOSE command. 3. Using a (Format 1) READ NEXT command the network server is now unable to READ the appended records. This behavior follows the ANSI ’74 COBOL standard. The standard states the following: When the AT END condition has been recognized, a Format 1 (sequential) READ must not be executed without first (successfully) executing one of the following…&quot; 1. Format 2 (random) READ 2. CLOSE and reOPEN 3. REWRITE Please note that MS-DOS COBOL Versions 2.1 and 2.2 require IBM PC Network or MS-NET Network software and hardware; they do not support any other networks. NISAM.EXE is provided with COBOL Versions 2.1 and 2.2 to support file and record locking over the network.

Additional reference words: 2.10 2.20 Copyright Microsoft Corporation 1993.