home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / fortran / 2827 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.2 KB

  1. Path: sparky!uunet!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!nntp.msstate.edu!Ra.MsState.Edu!nn1
  2. From: nn1@Ra.MsState.Edu (N. Narenthiran)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: Variable repeat count specifier for FORMAT statments
  5. Message-ID: <nn1.712013604@Ra.MsState.Edu>
  6. Date: 24 Jul 92 21:33:24 GMT
  7. References: <1992Jul23.215113.16531@jhunix.hcf.jhu.edu> <1992Jul24.012058.21162@ncsa.uiuc.edu>
  8. Sender: news@ra.msstate.edu
  9. Distribution: na
  10. Organization: Mississippi State University
  11. Lines: 21
  12. Nntp-Posting-Host: ra.msstate.edu
  13.  
  14. hirchert@ncsa.uiuc.edu (Kurt Hirchert) writes:
  15.  
  16. >In article <1992Jul23.215113.16531@jhunix.hcf.jhu.edu> psun@jhunix.hcf.jhu.edu (Peter Sun) writes:
  17.   {..deleted..}
  18. >situations, I would build the format on the fly:
  19.   {..deleted..}
  20. >              character*80 fmt
  21. >              ...
  22. >              write (fmt,'(a,i3,a)') '(',n,'(I8))'
  23. >              write (*,fmt) whatever_it_is_you_wanted_to_write
  24.   {..deleted..}
  25. >-- 
  26. >Kurt W. Hirchert     hirchert@ncsa.uiuc.edu
  27. >National Center for Supercomputing Applications
  28.  
  29. But,
  30.   Is the statement WRITE (*,FMT='(I5)') I standard conforming or not?
  31. If it is, is it ok to name a character string as FMT?
  32.  
  33. have a nice day.
  34. naren.
  35.