From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,dd937e0a45153637 X-Google-Attributes: gidf7344,public X-Google-Thread: fee84,dd937e0a45153637 X-Google-Attributes: gidfee84,public From: lionel@quark.enet.dec.com (Steve Lionel) Subject: Re: Transfer unformatted files OSF VS VMS Date: 1995/04/21 Message-ID: <3n89ro$e4h@jac.zko.dec.com>#1/1 X-Deja-AN: 101362111 references: <3n54fi$qbu@sirio.cineca.it> organization: Digital Equipment Corporation - Nashua, NH reply-to: lionel@quark.enet.dec.com newsgroups: comp.os.vms,comp.unix.osf.osf1 In article <3n54fi$qbu@sirio.cineca.it>, infor@meteo1.arpamet.regione.emilia-romagna.it (Franco Screpanti) writes: >I have a ftp question. I work with a VAX running VMS 5.5-2 and FORTRAN 6.0 >and a AXP running OSF1 2.0 and FORTRAN 3.4 . I have to transfer some >unformatted files created on AXP : OPEN (unit=01,file='xxx.x',type='unknown', >form='unformatted',recordtype='segmented',recl=510) - to a VAX VMS and read >these files in the same segmented unformatted manner : >OPEN(unit=01,file='xxx.x',type='old',form='unformatted',recordtype='segmented') [snip] >but on VAX the resulting file is with : >RECORD FORMAT : variable length, maximum 512 bytes >instead i need a file with : >RECORD FORMAT : variable length . I suspect what you actually have on the VAX is fixed length records. All you should need to do is change the file attributes to variable-length records. Since you're running VMS 5.5-2, I'll suggest Joe Meadows' FILE utility which is available at ftp.wku.edu. You're ahead of the game in that you used recordtype='segmented' on the OSF system - this is exactly the same layout as DEC Fortran on VMS uses for that recordtype. Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For a summary of Digital's Internet services, send mail to info@digital.com