From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9320c1ef1810e573 X-Google-Attributes: gid1164f8,public From: leinberger@axp621.gsi.de (Uwe Leinberger GSI Darmstadt) Subject: Re: Transfering from PC to VAX Date: 1996/01/23 Message-ID: <4e3ltj$1tjq@rs18.hrz.th-darmstadt.de>#1/1 X-Deja-AN: 136088948 distribution: world references: <3103e3c2.1496170@news.demon.co.uk> <4e3ddc$ecq@madeline.INS.CWRU.Edu> organization: GSI - Gesellschaft f. Schwerionenforschung reply-to: leinberger@axp621.gsi.de (Uwe Leinberger GSI Darmstadt) newsgroups: comp.sys.dec In article <4e3ddc$ecq@madeline.INS.CWRU.Edu>, muswick@news.cwru.edu (Gary James Muswick) writes: > >Alan Campbell >alan@mullen.demon.co.uk writes> >>Does anyone have any experience transfering software from a PC to VAX, I have >>tried downloading software from decus on my PC at home for use at work but when >>I get it on the VAX it wont run, it tells me there is something wrong with the >>executables header. > >This may be in the VMS FAQ, but what is happenning is that you are changing >the format of the file or the data during the transfer process depending >on the methods, software and setup you are using. > >Basically one of two things happen when you transfer data between VMS and >other systems. > >1. The file does not have the proper attributes. Use DIRECTORY/FULL. > You will see some or all of the following info: > > File organization: Sequential > Shelved state: Online > File attributes: Allocation: 28, Extend: 0, Global buffer count: 0 > No version limit, Contiguous best try > Record format: Fixed length 512 byte records > Record attributes: None > RMS attributes: None > > The above was from a executable file. Most pc / ftp transfer processes > or file copies will not get the above correct. The big items are > Record format and Record attributes. > > For a transfer file you might see: > > Record format: Stream_LF > Record attributes: Carriage return carriage control > > Now in this case, you are lucky since VMS 6.0 allows you to modify > the file header attributes (it does alter the data, only VMS sees it). > > To make the above an executable, type: > > $ SET FILE/ATTRIBUTES(RFM:FIX,RAT:NONE,LRL:512) filename > > With older versions of VMS you need FILE > > Written by Joe Meadows Jr, at the Fred Hutchinson Cancer Research Center > BITNET: JOE@FHCRCVAX > PHONE: (206) 467-4970 > > And is available from a lot of VMS ftp sites. > >2. The second problem is biger problem. The data has been formated differently > during the transfer process. > > Record format: Variable length, maximum 78 bytes > Record attributes: Carriage return carriage control > > That was from a text file. Now the problem is, that during a file transfer > from pc the the VAX, each record was transferred one at a time, to the > VMS file. The result is that VMS has now created a file that has > separate records, each with a two bytes before each record, indicating > the record size. You discover that the files are now 2bytes * nrecords > longer than the source file. Without writing a coversion program, there > is little you can do to fix this. In some cases you might get lucky > with CONVERT/FDL. But the best thing here, is to set the parameters of your > software to create either a fixed or stream file on the VAX that is not > listed as VARIABLE LENGTH. > >The above problems can exist also between ftp unix/vms transfers also. > >I hope this helps. > >Gary Muswick. > > >A good idea to avoid such trouble in the first place is to use ZIP (not gzip!!!) on VMS to put the stuff in the container files = zip archives. With the correct switches, esp. "-V" (the " are needed) ZIP "-V" the RMS attributes of the files will also be stored in the zipfile, and UNZIP on the VMS machine (after binary transfers of the zipfile via ftp/kermit/whatever) should then happily restore the files with correct attributes. Was a great help for me more than once ;-)) Uwe