Unformatted files in exchange mode can be transferred using binary ftp between different machines without problems except:
CERNLIB RESIZE command
$!***************************************************************
$!* *
$!* RESIZE.COM v1.02 *
$!* *
$!* Resize ftp-files *
$!* Author: J.Zoll 90/07/24 *
$!* *
$!* Mods Date Comments *
$!* MARQUINA 92/12/07 Add cosmetics for public release *
$!* M.Kelsey 93/10/01 Prevent clashes on simultaneous runs *
$!* *
$!***************************************************************
$ ver_proc=F$VERIFY(0)
$ SAY :== WRITE/SYMBOL SYS$OUTPUT
$ If p1.eqs.""
$ Then Say "%DCL-I-SYNT syntax: resize [-s size] input_file [output_file]"
$ Exit
$ Endif
$ On ERROR Then Goto EXIT
$ On CONTROL_Y Then Goto EXIT
$!
$ ifile=p1
$ ofile=p2
$ size =3600
$ If p1.eqs."-S"
$ Then ifile=p3
$ ofile=p4
$ size =p2
$ Endif
$ If ofile.eqs."".or.ofile.eqs."-" Then ofile=ifile
$
$ ffile="EXCH_"+F$GETJPI("","PID")+".DAT"
$ OPEN/WRITE OUTP 'ffile
$ WRITE OUTP "RECORD"
$ WRITE OUTP "BLOCK_SPAN yes"
$ WRITE OUTP "CARRIAGE_CONTROL none"
$ WRITE OUTP "FORMAT fixed"
$ WRITE OUTP "SIZE ''size'"
$ CLOSE OUTP
$
$ Say "resize: setting record size of ",ofile," to ",size," bytes..."
$ EXCHANGE/NETWORK 'ifile 'ofile -
/TRANSFER=BLOCK -
/FDL='ffile
$!
$ purge/nolog 'ofile'
$ EXIT:
$ DELETE/NOCONF/NOLOG 'ffile'.*
$ dummy=F$VERIFY(ver_proc)
$ Exit
For a transfer starting on an OpenVMS computer
$ FTP SHIFT.CERN.CH SHIFT.CERN.CH> USER yourname <Password required for yourname. Password: <User leeiv logged in. SHIFT.CERN.CH> VERSION DUKPHY.PHY.DUKE.EDU MultiNet FTP user process 3.3(109) SHIFT.CERN.CH> BINARY Type: Image, Structure: File, Mode: Stream SHIFT.CERN.CH> RECORD-SIZE 32400 SHIFT.CERN.CH> RECORD-SIZE Record size for IMAGE files: 32400 SHIFT.CERN.CH> GET myfile.rzhist myfile.rzhist SHIFT.CERN.CH> QUIT $
For a transfer starting from a non-Multinet computer
> ftp dukphy.phy.duke.edu Connected to dukphy.phy.duke.edu. 220 DUKPHY.PHY.DUKE.EDU MultiNet FTP Server Process 3.3(14) at Mon 13-Jun-94 Name: yourname 331 User name (yourname) ok. Password, please. Password: ftp> binary 200 Type I ok. ftp> quote site rms recsize 32400 200 IMAGE file record size now 32400 bytes ftp> put myfile.rzhist myfile.rzhist ftp> quit
bin f 3600
If connecting to a VM/CMS system, then use
bin quote site fix 3600