Usually, this message indicates
a file corruption. The most likely explanation is that your site's
communications software inserted carriage returns into the transport
file.
At the target computer,
you can use a computer-specific utility (such as the UNIX hexadecimal
dump utility
xd
) to view the transport file
in hexadecimal format to find out if carriage returns were inserted.
See the UNIX
xd
(1) manual page for details.
As another example, for
z/OS, use the SPF 1 command for browsing,
select a data set, and enter
hex on
in the
command line.
This example shows an
example of a transport file that contains a carriage-return character
(0D) and a line-feed character (0A) toward the end of the first record.
See the 0D and 0A hexadecimal values in the first two positions of
the last line.
48 45 41 44 45 52 20 52 45 43 4F 52 44 2A 2A 2A HEADER R ECORD***
2A 2A 2A 2A 4C 49 42 52 41 52 59 20 48 45 41 44 ****LIBR ARY HEAD
45 52 20 52 45 43 4F 52 44 21 21 21 21 21 21 21 ER RECOR D!!!!!
30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 00000000 000000
30 30 30 30 30 30 30 30 30 30 30 30 30 30 20 20 00000000 0000
0D 0A 53 41 53 20 20 20 20 20 53 41 53 20 20 20 ...SAS SAS
If you do not see carriage-return
or line-feed characters, another form of corruption that is not immediately
apparent might have occurred. To test this possibility, at the target
computer, create another transport file from a member of the same
type and then view its hexadecimal representation. Compare the appearance
of the assumed uncorrupted file that you just created with the suspected
corrupted file that you are trying to restore. A visual comparison
might prove that the transport file that you are trying to restore
is corrupt. In this case, re-create the transport file at the source
computer, transfer it, and restore it at the target computer.
At the source computer,
find out whether the transport file's attributes include carriage
returns. For information about listing and correcting file attributes,
see the chapter that is appropriate to your operating environment.
At the source computer,
transfer the transport file to the target computer again.
If you are still unable
to restore a transport file that has the correct file attributes,
try using the reblocking program in
Reblocking a Transport File.