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