[quoted text, click to view] > From: sergeb_@hotmail.com (SonOfMog)
>
> Hi Alun, thanks for your help.
> You were right, I made the file using notepad for my test. That's the
> problem.
> I've made a new one using a straight editor and the 00 characters are
> gone.
> However, my file has 3 lines that are transfered on MVS as a single
> line with a 0D separator. I recognise the 0D as a line feed. Is there
> a way to make it disappear and instead make FTP treat it as a new
> line?
I think you'll find this, too, is due to your editor.
In Windows, the default line-end marker is 0D0A - that's two characters, a
carriage-return and a line-feed.
In Unix, the line-end marker is 0A. On the Macintosh it's 0D. I would
have to use a lookup table to see what it is in EBCDIC.
Check that your line-end markers are correct in the Windows file, using the
same sort of hex editor you've used on the previous problem. Then, make
sure that the FTP client on MVS is told to use the ASCII file type for the
transfer. This is an instruction to both client _and_ server, to indicate
that they should transfer the file using ASCII characters, and with a
line-end marker of 0D0A. This is, essentially, a no-op to the Windows FTP
server, but the MVS client should pick up on this hint to turn incoming
0D0A sequences into whatever MVS uses for local line-end markers, and if
necessary, to translate into EBCDIC.
Alun.
~~~~