Article View: comp.lang.fortran
Article #4487Re: Maximum number of openfiles on MS FORTRAN 5.1?
From: Joseph White
Date: Mon, 25 Jan 1993 14:22
Date: Mon, 25 Jan 1993 14:22
43 lines
2714 bytes
2714 bytes
In article <1993Jan24.174628.1@afit.af.mil> cwillits@afit.af.mil writes: >In article <Jan.22.09.43.13.1993.26857@gandalf.rutgers.edu>, >hempatel@gandalf.rutgers.edu (Hemanshu Patel) writes: >> >> I am using MS Fortan 5.1 on a PC running DOS, and I've written >> a program on a SPARC 1 which opens 20 or so files. It compiles >> and runs fine. I then transfered it to a PC, it compiles fine >> but I get a runtime error of too many files opened. I don't >> remember the exact error code. Does anyone know the maximum >> number of files openable at one time under MS Fortran 5.1, and >> any tricks around. I really don't want to open and close each >> file every time, especially since the data stored in them is >> sequentially written. Any help would be appreciated. Than... >According to Appendix C of the _Microsoft FORTRAN Reference_, a program written >in MS FORTRAN 5.1 and run under DOS or OS/2 cannot open more than 20 files at a >time. (Under certain situations involving OS/2, this can be extended to 40.) > >Another poster referred to changing the "FILES=" line in CONFIG.SYS. Setting >this limit to more than 20 has no effect on the MS FORTRAN limit of 20 open >files. The following is quoted from the file 'filehand.doc' that is located on the MicroSoft Fortran Ver 5.1 distribution disks. It is not qouted in full and is done so without permission. The exercise in finding the entire file on the disk(s) is up to the reader, (Hint: Looking at the file 'packing .lst' ) I have never done this, but I suspect that you also have to increase the Config.sys line Files=XX. Begin 'filehand.doc'---------------------- Increasing File Handles for the FORTRAN 5.10 Run-Time Libraries --------------------------------------------------------------- There are two methods available for increasing the number of file handles available to a program. One method is to modify and assemble the files CRT0DAT.ASM and UNIT.ASM as described in the header of the file UNIT.ASM. The other method is to use the pre-compiled modules provided in this directory tree. The files CRT0DAT.ASM and UNIT.ASM have been compiled Joe White jwhite@oasys.dt.navy.mil
Technical Details
Message-ID:
<30122@oasys.dt.navy.mil>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!oasys!jwhiteReferences:
<Jan.22.09.43.13.1993.26857@gandalf.rutgers.edu> <1993Jan24.174628.1@afit.af.mil>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!oasys!jwhite
From: jwhite@oasys.dt.navy.mil (Joseph White)
Newsgroups: comp.lang.fortran
Subject: Re: Maximum number of openfiles on MS FORTRAN 5.1?
Message-ID: <30122@oasys.dt.navy.mil>
Date: 25 Jan 93 14:22:17 GMT
References: <Jan.22.09.43.13.1993.26857@gandalf.rutgers.edu> <1993Jan24.174628.1@afit.af.mil>
Organization: Annapolis Detachment, CARDEROCKDIV, NSWC Code 2723
(formerly David Taylor Research Center, Annapolis MD)
Lines: 43