From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d8073e251a867483 X-Google-Attributes: gid1164f8,public From: patteeuw@sys2.ped.pto.ford.com (Jack Patteeuw) Subject: Re: VAX->UNIX FORTRAN PORTING PROBLEM! Date: 1996/07/10 Message-ID: <4s16ak$8gm@pt9201.ped.pto.ford.com>#1/1 X-Deja-AN: 167649108 references: <1996Jul9.172242@stsci.edu> organization: Ford Motor Co., AVT-CAPE, Dearborn, MI reply-to: patteeuw@sys2.ped.pto.ford.com newsgroups: comp.sys.dec 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. 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 !"