[Info-vax] difference in files being copied by scp from Unix to VMS
JF Mezei
jfmezei.spamnot at vaxination.ca
Mon Apr 27 18:58:46 EDT 2009
Sumir wrote:
> ------ FILE 1 ------
> Highest block: 20
> End of file block: 14
> End of file byte: 178
> ------ FILE 2 ------
> Highest block: 20
> End of file block: 14
> End of file byte: 340
The second file has an extra 162 bytes at the end (340 - 178).
The first file has a total of:
13*512 + 178 bytes (14th partial block) = 6834 bytes
The second file has a total of:
13*512 + 340 = 6996 bytes.
You may wish to check on the remote machine how big the file is.
This could provide insight on whether it is the VMS->other transfer
which adds those extra bytes, or when you move the file back to VMS.
You can also use
DUMP file1/block=(start=14,count=1)
DUMP file2/block=(start=14,count=1)
And compare. You might see some end of file character in the file2
followed by nulls. Some file systems might see the CTRL-Z as an end of
file marker and they won't mind if there is trailing data following it,
but when the file gets transfered, that end of file semantic may not be
tranlated.
What I find interesting is that the second file does have an end of file
byte set, bu it is wrong value. I was epectong that your problem was
that the file would get created with the 14th block marked as full (last
byte at 512). But with the end of file byte changing from 178 to 340 is
puzzling.
More information about the Info-vax
mailing list