🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.fortran
6 messages
6 total messages Started by Hemanshu Patel Fri, 22 Jan 1993 14:43
Maximum number of openfiles on MS FORTRAN 5.1?
#4461
Author: Hemanshu Patel
Date: Fri, 22 Jan 1993 14:43
12 lines
973 bytes
	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...

	Hemanshu
Re: Maximum number of openfiles on MS FORTRAN 5.1?
#4474
Author: Barbara Vaughan
Date: Fri, 22 Jan 1993 16:25
18 lines
1559 bytes
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...

I don't know anything about MS Fortran 5.1 (I use Lahey), but you might
want to check your DOS config.sys file.  There may be a line in it saying
"files = 15" or something.  If so, change it.  If there's no such line,
add one, with a limit you can live with.

Barbara Vaughan
Re: Maximum number of openfiles on MS FORTRAN 5.1?
#4462
Author: Joseph White
Date: Fri, 22 Jan 1993 19:15
12 lines
1166 bytes
In comp.lang.fortran, 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

The information you are looking for is in the file filehand.doc on the
dirtribution floppy disks.  On the 5.25 inch disks, it is on disk 5, I
don't which disk in the 3.5 inch set.  I haven't looked at it in a
while, but I seem to remember that you need an assembler to do it.

Joe White
Re: Maximum number of openfiles on MS FORTRAN 5.1?
#4485
Author: cwillits
Date: Sun, 24 Jan 1993 12:46
27 lines
1826 bytes
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...
> 
> 	Hemanshu

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.
 
Craig J. Willits
Graduate Student, Operations Research
Air Force Institute of Technology
cwillits@afit.af.mil
Re: Maximum number of openfiles on MS FORTRAN 5.1?
#4486
Author: Yin-Hsin Chen
Date: Mon, 25 Jan 1993 04:04
25 lines
1748 bytes
In article <1993Jan24.174628.1@afit.af.mil> cwillits@afit.af.mil writes:
>
>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.
> 
 There are two parts that affect the open files. One is on DOS side.
You can increase this part by changing the "FILES=" line in
CONFIG.SYS. The second part is on MS FORTRAN side. According to MS
FORTRAN 4.1 & 5.0, some assembly code must be changed to increase the
limit. Sorry I never use MS FORTRAN 5.1. Under DOS, I ever increased
the open files to 40+. I cannot open more files under DOS. But under
OS/2 1.0, I can increase the open files to 60+. Because this was what
I need at that time, I don't know the limit. Again, this is for MS
FORTRAN 5.0, not 5.1. But I don't think the number of the open files
will decrease.

>Craig J. Willits
>Graduate Student, Operations Research
>Air Force Institute of Technology
>cwillits@afit.af.mil
Re: Maximum number of openfiles on MS FORTRAN 5.1?
#4487
Author: Joseph White
Date: Mon, 25 Jan 1993 14:22
43 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads