* Transfer unformatted files OSF VS VMS
@ 1995-04-20 4:00 Franco Screpanti
1995-04-21 4:00 ` Steve Lionel
0 siblings, 1 reply; 2+ messages in thread
From: Franco Screpanti @ 1995-04-20 4:00 UTC (permalink / raw)
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')
I can only using FTP to transfer and i try with follow method :
!!!! start procedure
ftp <nodevax>
<username>
<password>
ascii
put .vuoto xxx.x ! is an empty file to create a variable length file on VMS
binary
append xxx.x xxx.x
bye
!!!! end procedure
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 .
Can someone out there help?
Thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Transfer unformatted files OSF VS VMS
1995-04-20 4:00 Transfer unformatted files OSF VS VMS Franco Screpanti
@ 1995-04-21 4:00 ` Steve Lionel
0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1995-04-21 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-04-21 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-20 4:00 Transfer unformatted files OSF VS VMS Franco Screpanti
1995-04-21 4:00 ` Steve Lionel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox