home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uimrl7.mrl.uiuc.edu!ercolessi
- From: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Subject: A VMS Fortran I/O question
- Message-ID: <C03pyp.E4v@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Reply-To: ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi)
- Organization: MRL - UIUC
- Date: Thu, 31 Dec 1992 02:08:48 GMT
- Lines: 27
-
- Does anybody know (well, Steve Lionel certainly knows, but maybe
- he's in holiday ...) what should I do to kill the carriage control character
- on the standard output in VMS Fortran ?
-
- That is, I would like to be able to code something like
- PRINT '(a)','Hello'
- instead of
- PRINT '(1x,a)','Hello'
- in order to bring the code back and forth between Unix and VMS and
- retain the same behavior [please don't tell me i have to pipe the output
- through 'asa' on the Unix side :-)]
-
- I am sure there is some magic OPEN that does the trick. If you do
- OPEN(6,FILE='SYS$OUTPUT',STATUS='UNKNOWN',CARRIAGERETURN='LIST')
- then this fixes the WRITE(6,) but not the PRINTs.
- The PRINTs go to a logical unit called FOR$PRINT but how should I
- reference it in the OPEN? Is there a magic unit number associated
- with it?
-
- Thanks!
-
- PS OK, *real programmers* always use WRITE(6,)!
- --
- Furio Ercolessi
- Materials Research Laboratory | Intl School for Advanced Studies
- Univ. of Illinois at Urbana-Champaign | Trieste, Italy
- furio@uiuc.edu | furio@sissa.it
-