Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: iversen@dsfys1.fi.uib.no (Per Steinar Iversen)
Subject: Re: VAX to VAX binary ftp !!!!!!!!!!!
Date: 24 Feb 93 11:04:22 GMT	[thread overview]
Message-ID: <1993Feb24.110422.18849@alf.uib.no> (raw)
In-Reply-To: 1meajoINNmte@manuel.anu.edu.au


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                 !                                                     !
+------------------------------------------------------------------------------+


      reply	other threads:[~1993-02-24 11:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-02-22 15:54 VAX to VAX binary ftp !!!!!!!!!!! atmos
1993-02-23  2:27 ` oberman
1993-02-23 13:08 ` Steve McKinty - Sun ICNC
1993-02-23 23:05 ` Bernhard Fabricius
1993-02-24 11:04   ` Per Steinar Iversen [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox