Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!noose.ecn.purdue.edu!sanandreas.ecn.purdue.edu!moshkovi From: moshkovi@sanandreas.ecn.purdue.edu (Gennady Moshkovich) Newsgroups: comp.lang.fortran Subject: Re: Implied do loop in write (SUMMARY) Message-ID: Date: 24 Apr 91 18:12:22 GMT References: <1991Apr23.201123.3908@unixg.ubc.ca> <1991Apr24.162241.8045@maverick.ksu.ksu.edu> Sender: root@noose.ecn.purdue.edu (ECN System Management) Distribution: usa Organization: Purdue University Engineering Computer Network Lines: 38 mac@cis.ksu.edu (Myron A. Calhoun) writes: >moshkovi@sanandreas.ecn.purdue.edu (Gennady Moshkovich) writes: >>buckland@cheddar.ucs.ubc.ca (Tony Buckland) writes: >>>moshkovi@eurotunnel.ecn.purdue.edu (Gennady Moshkovich) writes: >>>>100 format(10i8) >> ^^^^ >> THIS IS THE PROBLEM !! >>Just look at the code, and you will see where the problem is. >>You can't print with this code more then _10_ elements in a row. >And who told you that? FORTRAN FORMAT processor automatically starts >a new line when it reaches the last closing parentheses. >>I can repeat again !!!. I don't know beforehand how many >>elements I have, I can have 3, or I can have 300, but the >>output MUST look nice. >You must have some awfully wide printers! For the 132-column printers >I get to use, 16 8-digit numbers across is all that "look nice". >So just write 100 format(16i8) AND THAT IS ALL YOU'LL EVER NEED >(for 8-digit numbers)! >--Myron. Well, don't whant to start another flame war. I agree, this will work. BUT, BUT, BUT isn't the way of flexible labels looks much better and flexible. (note, this is not a question) Gene -- Gennady Moshkovich Purdue University Department of Civil Engineering moshkovi@ecn.purdue.edu