home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / fortran / 4905 < prev    next >
Encoding:
Text File  |  1993-01-04  |  2.3 KB  |  48 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
  3. From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  4. Subject: Re: A VMS Fortran I/O question
  5. References: <C03pyp.E4v@news.cso.uiuc.edu> <MARBY.93Jan2161438@laura.harvard.edu> <1993Jan3.040453.20688@chpc.utexas.edu>
  6. Message-ID: <C0CGGB.1tE@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
  9. Organization: MRL - UIUC
  10. Date: Mon, 4 Jan 1993 19:21:45 GMT
  11. Lines: 35
  12.  
  13. In article <1993Jan3.040453.20688@chpc.utexas.edu>, michael@chpc.utexas.edu (Michael Lemke) writes:
  14. |> I'd rather think the *Unix* stuff should honor
  15. |>FORTRAN carriage control.  Well, I know it doesn't but a PRINT
  16. |>statement after all creates a print file (or even sends something to a
  17. |>printer), so doesn't FORTRAN require print files to honor the carriage
  18. |>control character?  What is the excuse this time that the Unix joke is
  19. |>still standard conform?
  20.  
  21. They have put there a filter called asa, and you just pipe the output
  22. through it.  But then you will have a bit of a problem for interactive
  23. programs (buffering will be your enemy!), and also for "batch"
  24. programs writing on a file if you like to peek at the output while the
  25. program is running.
  26.  
  27. |>  BTW, in Sun Fortran there is a special STATUS='PRINT' in
  28. |>the OPEN statement which causes the first character to be ignored if a
  29. |>blank or to be converted to a CTRL/L if a 1 etc.  `+' does not work
  30. |>though. This evne works for stdout but I don't know about PRINT.  Maybe 
  31. |>your Unix compiler has something similar.
  32.  
  33. This sounds a neat idea and I wholeheartly suggest that all Unix compiler
  34. writers put this feature in (hopefully, with the same syntax ...).  
  35. I only have two questions: how can you OPEN the unit where the PRINTs
  36. go (usually mapped to the Unix standard output) ?  OPEN(*,) ???
  37. And, are you sure that the keyword is 'STATUS'? I think that STATUS
  38. has another meaning associated with it and cannot be overloaded.
  39.  
  40. Thanks to all who replied to my original post.
  41.  
  42. furio
  43. --
  44. Furio Ercolessi
  45. Materials Research Laboratory           |   Intl School for Advanced Studies
  46. Univ. of Illinois at Urbana-Champaign   |   Trieste, Italy
  47. furio@uiuc.edu                          |   furio@sissa.it
  48.