home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5162 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.6 KB

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