0

I have a file created in Linux that I'm sending out of a MS FTP 7.5 server. The receiving system (client) is a mainframe. The file has LF line endings. The FTP server is not reading those and translating them, so it's not getting transmitted properly. Is there a way to solve this (other than translating the file)?

3
  • My situation is very much like this one.
    – end-user
    Sep 20, 2013 at 11:38
  • For clarification -From the Windows server to the mainframe are you pushing the file or is the mainframe logging in to the Windows server to pull the file?
    – colson
    Oct 5, 2013 at 2:38
  • The mainframe is the client.
    – end-user
    Oct 7, 2013 at 11:24

1 Answer 1

0

I'm going to venture an answer here but take it with a grain of salt as it has been a while since I've done plain FTP on a mainframe... IIRC correctly, when Z/OS does a translation, it fully expects a windows-style line ending of 0D0A

Run the file through unix2dos (if you have it) on the Linux box, which should convert all of your line-endings to 0D0A and then push the file to your Windows server. Alternatively, you can probably create a test file in notepad in Windows and try it that way...

Then, have the mainframe folks try pulling the file.

See this - specifically the Parameters:CRLF and the Rule parts.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .