From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,201f81685e4873bd X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-02-24 03:04:22 PST Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ames!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sungy!news.Sweden.Sun.COM!swippy!seunet!sunic!ugle.unit.no!alf.uib.no!dsfys1.fi.uib.no!iversen From: iversen@dsfys1.fi.uib.no (Per Steinar Iversen) Newsgroups: comp.sys.dec Subject: Re: VAX to VAX binary ftp !!!!!!!!!!! Message-ID: <1993Feb24.110422.18849@alf.uib.no> Date: 24 Feb 93 11:04:22 GMT References: <1993Feb22.155412.12180@vax.oxford.ac.uk> <1meajoINNmte@manuel.anu.edu.au> Sender: iversen@vsfys1.fi.uib.no (Per Steinar Iversen) Reply-To: iversen@vsfys1.fi.uib.no Organization: Department of Physics, University of Bergen, Norway In article <1meajoINNmte@manuel.anu.edu.au>, bear@nuc.anu.edu.au (Bernhard Fabricius) writes: >In article <1993Feb22.155412.12180@vax.oxford.ac.uk>, atmos@vax.oxford.ac.uk writes: >> >>I was wondering if someone could help with a VAX to VAX FTP transfer that I >>currently can't get to work. >> >>I have a binary file on SITE_1 which I would like to FTP to SITE_2 using a >>binary FTP transfer. > >>The file attributes of the original file are >[Stuff deleted] > >>but by the time it reaches SITE_2 the file attributes are >[Stuff deleted] > >>Now I had hoped to use the DECUS program >>ATTRIBUTE/RATTRIB=IMPLIED/RTYPE=VARIABLE TEST.BINARY >>to fix the file attributes back again. But even after doing this the binary >>file is still unreadale. Is there anything else I have to do to make it work? >>Many thanks to anyone who has the time to reply, > >Paul, > "binary" FTP transfers is a bit of a sticky point unless you have a >TCP/IP product that supports the STRU VMS instruction which transfers the VMS >file structure as well. "Binary" mode only really works for fixed length >records, and only if the fixed lenght is 512 bytes are you able to use the file >right away. > > But don't despair! What you should do is to backup your file into a VMS >Saveset: > > $ BACKUP TEST.BINARY TEST.BCK/SAVE > >Next you transfer this saveset in BINARY mode, and on arrival at the other end, >you use the DECUS program to set the record length back to the 32256 bytes used >by backup to disk. Finally, you simply unfold your saveset: > > $ BACKUP TEST.BCK/SAVE [] > >and you're done! In this way, you can transfer any number of files in any of >RMS's smvrgesbord of formats. ("smorgasbord" in case you don't have an 8-bit >news-reader..._ > > >Cheers > > >Bernhard >-------------------------------------------------------------------------------- >Dr Bernhard Fabricius | >Academic VAX/VMS Support | "I am a Bear of Very Little Brain, >Department of Nuclear Physics | and long words Bother me." >Australian National University | > | - A.A. Milne >InterNet: BEAR@NUC.ANU.EDU.AU | > POSTMASTER@NUC.ANU.EDU.AU | > > There is an alternative, sometimes a backup save_set + the original files may may be bigger than the disk quota or even the total space available on disk. In that case one can use FILE, a very nice public domain program. From the HELP file: FILE Examples One common use of FILE, is to 'coerce' a file into being a Fixed 512 byte file, to upload/download the file via kermit. For example, given a saveset A.SAV, you could do the following: $ FILE/OUTPUT=A.FIX A.SAV/RECORD_SIZE=512/TYPE=FIXED You could then transfer the two files A.FIX and A.SAV using Kermit (it would take two transfers, A.FIX with 'set file type text', and A.SAV using 'set file type fixed') To turn the file back into its original useable self, you could then do: @A.FIX This would cause the originally saved characteristics to be put back on the file. Another common use is to set the Fortran carriage control attribute so that a file can be printed with fortran carriage control, this can be done as follows: $ FILE/OUTPUT=OLD.TMP NETMONTH.* - _$ /ATTRIBUTES=(FORTRANCC,NOIMPLIEDCC,NOPRINTCC) There are obviously other uses for FILE too. The programs FIND and VERB by the same author are also worth picking up as general tools. -psi +------------------------------------------------------------------------------+ ! Per Steinar Iversen ! Internet: iversen@vsfys1.fi.uib.no ! ! Fysisk Institutt ! BITnet: iversen@cernvm.bitnet ! ! Universitetet i Bergen ! HEPnet: VSFYS::IVERSEN (VSFYS=21.341=21845) ! ! Allegaten 55 ! Phone: +47 5212770 ! ! N-5007 Bergen ! Fax: +47 5318334 ! ! NORWAY ! ! +------------------------------------------------------------------------------+