The problem is, IMHO, that the file is stored on Windows
with LF delimiters. This is probably not due to a previous FTP transfer
from Unix to Windows, but some other way. The file exists and cannot be
changed.

Now the question is, how to transfer it to z/OS?

I don't believe that the Windows FTP client has an option to deal with this situation,
since it assumes all textfiles to have CRLF delimiters.

There is nothing you can do on the z/OS side, IMO.

I'd like to ask the following questions:

- are you transferring in text mode or binary?

- where is the original file built, Unix or Windows?

- can you FTP it from a UNIX FTP client, by any chance?

- can you build it with CRLF delimiters, if built on Windows?

- can you convert it from LF to CRLF on Windows, before transferring it?

- any other solutions? Sockets, MQS, database connection?

Kind regards

Bernd



Hal Merritt schrieb:
This has been discussed here many times.

IIRC, the issue is a parameter on the originating *nix FTP that controls how a 'record' is delimited. You have to go to the originating *nix box and set that FTP parameter to send CRLF instead of just LF. Once you do that, all is well with the world. There are a number of cludgey workarounds, but fixing a root issue is generally best. AFAIK, the offending paramter/option exists only on many flavors of *nix. There is no equivlant on Windows or z/os. HTH and good luck.
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
??? ?? ???
Sent: Thursday, March 18, 2010 3:00 AM
To: [email protected]
Subject: FTP problem

Hi,

I have to transfer a unix encoded file (has LF as line delimiter) that is 
stored on a windows platform to the MF.
The transfer is initiated in a batch job and is part of a production process.

Is there a ftp parameter that will help me?

We are using z/Os 1.9.

Thanks

Gadi


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to