Microsoft KB Archive/32962

COBOL Version 3.0 Usage of File Buffers at Run Time

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

3.00 | 3.00 MS-DOS | OS/2

Summary: This article summarizes how Microsoft COBOL Version 3.0 allocates file buffers at run time: 1. At the first file OPEN, 32K is allocated for file buffers. 2. When the 32K buffer is exhausted, another 32K buffer is allocated. 3. As files are CLOSEd, buffers will be reused. 4. The CANCEL statement can fragment memory. When CANCELling, first survey all modules counting total number of files open at a time. Dummy OPEN statements placed in the main module can also avoid memory fragmentation. 5. The +G runtime switch forces all files to buffer with a size of 512 bytes.

Additional reference words: 3.00 Copyright Microsoft Corporation 1993.