> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On 
> Behalf Of Bernard Wu
> Sent: Tuesday, May 06, 2008 7:05 AM
> To: [email protected]
> Subject: ftp to zOS ignores LF
> 
> Hi List,
> I am trying to ftp a plain txt file to zOS.
> If I use the WARP option, the whole file is transfered as one 
> continusous
> string.
> If I don't use the WARP option, the file is transfered as a continuous
> string but it also gets truncated ( determined by blksize ).
> Either way, it looks like ftp is not handling the linux LF 
> properly.  It
> ends up as a x'25' on the zOS platform.
> 
> Has anyone encountered this before ?

I have not had that problem, exactly. But the x'25' is an EBCDIC LF
(line feed). However, z/OS UNIX files should be delimited with x'15',
which is an EBCDIC NEL (new line). I have had this problem when
transferring a file from Windows to z/OS UNIX when the lines in the
Windows file are delimited only with LF instead of CRLF. I think that's
what it was. It was a fair amount of time ago.

You might have a code page problem.

A "work around" is to transfer the file to a z/OS UNIX file. Then, on
the z/OS system, translate the x'25' to x'15'

tr '/045' '/025' <bad.input >good.output

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it.  

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to