From: patteeuw@sys2.ped.pto.ford.com (Jack Patteeuw)
Subject: Re: VAX->UNIX FORTRAN PORTING PROBLEM!
Date: 1996/07/10 [thread overview]
Message-ID: <4s16ak$8gm@pt9201.ped.pto.ford.com> (raw)
In-Reply-To: 1996Jul9.172242@stsci.edu
In article <1996Jul9.172242@stsci.edu>, speck@stsci.edu writes:
>
>
>To anyone who can be of assistance:
>
>I am currently have a rather nasty time of porting a piece of VAX Fortran
>code to SPARC Fortran on a SUN Sparcstation. The piece of code in question
>opens a file, writes to it, and closes the file. When this program is
>run on a VAX, after its completion, a procedure is invoked which copies the
>data file (created during the run of the Fortran program) via RCP from one
>VAX disk to another VAX disk. Another VAX Fortran program is then run,
>which uses the newly created data file as input.
Are you absolutely positive that the file was copied using RCP, seeing as
RCP is not a standard VMS command. the COPY command is used to copy files
between different disk drives on the same machine as well as for copying
files over a DECnet network to another VAX. For that matter even in UNIX, rcp
would only be used for network copying.
<much deleted>
Well the bad news is "you can't get there from here !" On top of that you
you have actually broken the old program on the VAX.
Without going into gorry detail (which you will have to do if you really
want to make this work), VMS has an extra "layer" of information inside the
file placed there by something called Record Management Services (RMS).
RMS understands things like records, be they variable, fixed, or fixed with
variable control. UNIX doesn't like to deal with records.
You have two options. Rewrite the second program that read that data which
is now formatted differently or hire someone who really knows VMS, RMS and
UNIX Fortran applications and fix the first program to emulate RMS. I
guess the third option is for you to learn a lot more about VMS than you
already know, but I'll bet you don't want to do that !!
Jack Patteeuw
My opinions are my own and not my employer's, my wife's, or my children !
"I used to do VMS, Stolen from a good friend:
Now I do Unix; "A mind is like a parachute ...
It's a living" It only works when it is open !"
prev parent reply other threads:[~1996-07-10 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-09 4:00 VAX->UNIX FORTRAN PORTING PROBLEM! speck
1996-07-10 4:00 ` Jack Patteeuw [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox