Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: leinberger@axp621.gsi.de (Uwe Leinberger GSI Darmstadt)
Subject: Re: Transfering from PC to VAX
Date: 1996/01/23	[thread overview]
Message-ID: <4e3ltj$1tjq@rs18.hrz.th-darmstadt.de> (raw)
In-Reply-To: 4e3ddc$ecq@madeline.INS.CWRU.Edu


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" <zipfile> <listoffiles>

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





  parent reply	other threads:[~1996-01-23  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-22  5:00 Transfering from PC to VAX Big
     [not found] ` <4e3ddc$ecq@madeline.INS.CWRU.Edu>
1996-01-23  5:00   ` Uwe Leinberger GSI Darmstadt [this message]
1996-01-24  5:00 ` Michael Simms
1996-01-24  5:00 ` Steve Lionel
1996-02-02  5:00 ` John Claxton
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