Article View: comp.lang.fortran
Article #4539Re: A VMS Fortran I/O question
From: agnew
Date: Mon, 04 Jan 1993 12:48
Date: Mon, 04 Jan 1993 12:48
47 lines
2265 bytes
2265 bytes
In reply to Furio Ercolessi's message, could he not simply use
CONVERT/FDL=BLAH DATAFILE.FOO DATASEND.BAR,
where fdl is an fdl taken of an simple file that will send over the net,
and the vms convert utility simply twists the file into it's new form???
wouldn't that be easier than all that coding you guys are talking about???
Jim Agnew
/^^^\ \ / Jim Agnew | AGNEW@RUBY.VCU.EDU (Internet)
/ > || Neurosurgery, | AGNEW@VCUVAX (Bitnet)
/\_/ ' \ / MCV-VCU | This disc will self destruct in
/________________> Richmond, VA, USA | five seconds. Good luck, Jim..."
In article <C03pyp.E4v@news.cso.uiuc.edu>, ercolessi@uimrl3.mrl.uiuc.edu (furio ercolessi) writes:
> 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
Technical Details
Message-ID:
<1993Jan4.084845.248@gems.vcu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!uvaarpa!gems.vcu.edu!agnewReferences:
<C03pyp.E4v@news.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!uvaarpa!gems.vcu.edu!agnew From: agnew@gems.vcu.edu Newsgroups: comp.lang.fortran Subject: Re: A VMS Fortran I/O question Message-ID: <1993Jan4.084845.248@gems.vcu.edu> Date: 4 Jan 93 08:48:45 -0400 References: <C03pyp.E4v@news.cso.uiuc.edu> Organization: Medical College of Virginia Lines: 47