* Transfering from PC to VAX
@ 1996-01-22 5:00 Big
[not found] ` <4e3ddc$ecq@madeline.INS.CWRU.Edu>
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Big @ 1996-01-22 5:00 UTC (permalink / raw)
Hi,
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.
TIA
Alan
---
Alan Campbell
alan@mullen.demon.co.uk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Transfering from PC to VAX
[not found] ` <4e3ddc$ecq@madeline.INS.CWRU.Edu>
@ 1996-01-23 5:00 ` Uwe Leinberger GSI Darmstadt
0 siblings, 0 replies; 5+ messages in thread
From: Uwe Leinberger GSI Darmstadt @ 1996-01-23 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Transfering from PC to VAX
1996-01-22 5:00 Transfering from PC to VAX Big
[not found] ` <4e3ddc$ecq@madeline.INS.CWRU.Edu>
1996-01-24 5:00 ` Steve Lionel
@ 1996-01-24 5:00 ` Michael Simms
1996-02-02 5:00 ` John Claxton
3 siblings, 0 replies; 5+ messages in thread
From: Michael Simms @ 1996-01-24 5:00 UTC (permalink / raw)
In article <3103e3c2.1496170@news.demon.co.uk>, Big Al (Big Al) says:
>
>Hi,
>
>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.
>
>TIA
>Alan
>
>---
>Alan Campbell
>alan@mullen.demon.co.uk
>
If your are using C-Kermit to transfer the file then I think your best bet is to
use Set File Type Image and Set File Type Labeled. In Kermit-32 the best
equivelent I can think of is Set File Type Block. Following is an extract
from the C-Kermit 5A(188) online help.
C-Kermit>help set file
Syntax: SET FILE parameter value
Parameters:
TYPE: How file contents are to be treated during file transfer.
TYPE is normally TEXT, with conversion of record format and character set.
BINARY means to do no conversion. Use BINARY for executable programs or
binary data. Example: SET FILE TYPE BINARY.
For VAX/VMS, you may include an optional record-format after the word
BINARY. This may be FIXED (the default) or UNDEFINED.
Two additional VMS file types are also supported: IMAGE and LABELED. IMAGE
means raw block i/o, no interference from RMS, and applies to file transmis-
sion only. LABELED means to send or interpret RMS attributes with the file.
Michael Simms
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Transfering from PC to VAX
1996-01-22 5:00 Transfering from PC to VAX Big
[not found] ` <4e3ddc$ecq@madeline.INS.CWRU.Edu>
@ 1996-01-24 5:00 ` Steve Lionel
1996-01-24 5:00 ` Michael Simms
1996-02-02 5:00 ` John Claxton
3 siblings, 0 replies; 5+ messages in thread
From: Steve Lionel @ 1996-01-24 5:00 UTC (permalink / raw)
In article <3103e3c2.1496170@news.demon.co.uk>, Big Al (Big Al) writes:
>Hi,
>
>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.
Sure - I do this all the time. You have to make sure that the files are
transferred in "binary" mode. You haven't said how you do the transfer(s),
so it's hard to help further, but you've probably done an ASCII-mode
transfer somewhere along the way.
Steve Lionel Mail: lionel@quark.enet.dec.com
DEC Fortran Development WWW: http://www.digital.com/info/slionel.html
Digital Equipment Corporation CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698 "Free advice is worth every cent"
For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Transfering from PC to VAX
1996-01-22 5:00 Transfering from PC to VAX Big
` (2 preceding siblings ...)
1996-01-24 5:00 ` Michael Simms
@ 1996-02-02 5:00 ` John Claxton
3 siblings, 0 replies; 5+ messages in thread
From: John Claxton @ 1996-02-02 5:00 UTC (permalink / raw)
Big Al (Big Al) wrote:
>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.
>
I addition to the file types mentioned in the previous article, don't
forget VMS VFC files, and things like libraries, savesets, etc. A file
opened by DCL for output typically is a VFC file (also COBOL likes VFC
files for output - a lot). These take special handling. For the
savesets you'll probably see a message that indicates a problem with the
record size. I think there's a routine on CompuServe's VAX Forum that
solves this. It also handles library formats.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-02-02 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1996-01-24 5:00 ` Steve Lionel
1996-01-24 5:00 ` Michael Simms
1996-02-02 5:00 ` John Claxton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox