home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2812 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!jhunix.hcf.jhu.edu!psun
  3. From: psun@jhunix.hcf.jhu.edu (Peter Sun)
  4. Subject: Variable repeat count specifier for FORMAT statments
  5. Message-ID: <1992Jul23.215113.16531@jhunix.hcf.jhu.edu>
  6. Summary: How to specify a variable repeat count specifier?
  7. Organization: Johns Hopkins University, Baltimore
  8. Distribution: na
  9. Date: Thu, 23 Jul 1992 21:51:13 GMT
  10. Lines: 16
  11.  
  12. My apologies if this questions seems trivial, but I've tried to find the
  13. answer in so many places.  I need to know how to give a variable as the
  14. number of repeat counts to a format field descriptor statement.  For
  15. example I know on VAX/VMS this can be done with something like:
  16.  
  17.                    write (*, '(<n>(I8))')
  18.  
  19. which will repeat the format descriptor I8 n number of times, but I haven't
  20. found this portable to other compilers.  Namely, the MIPS Fortran 77
  21. compiler for the SGI IRIS system.  Is there a standard for this?  Or is it
  22. just compiler dependent.
  23.  
  24. Thank you very much!  Any help will be greatly appreciate.  
  25.  
  26. --Peter Sun
  27. psun@jhunix.hcf.jhu.edu
  28.