Quantcast
Viewing all articles
Browse latest Browse all 8500

All Other Mainframe Topics :: RE: FTP from windows server into Mainframe - Data truncation

Author: steve-myers
Posted: Wed Jul 20, 2016 8:06 pm (GMT 5.5)

Quote:
EZA2802I Data was truncated.

There are several misunderstandings here.
  1. When FTP transfers data in ASCII mode, the data that it transfers uses only *nix style end of line characters. In other words, if you transfer a mainframe style text data set which does not use end of line characters, what FTP sends on the line is textNLtextNL...textNL. If a Windoze FTP receives this it builds a Windoze file as textCRLFtextCRLF...textCRLF. The text on the line is always ASCII. Similarly, FTP on Windoze would send textCRLFtextCRLF...textCRLF as textNLtextNL...textNL.
  2. I think the message is saying the mainframe FTP received more than 300 bytes (or whatever the LRECL of the output data set is) before end of data or an NL character, so it truncated the line.
  3. To the best of my knowledge there is no default "LRECL" or even the concept of an "LRECL," for a text file in either *nix or Windoze. I routinely build several hundred byte and sometimes longer logical lines in Windoze notepad.

As Mr. Sample and expat both say, you must review your data. I see at least two possibilities.
  • The Windoze file does not use CRLF as a line terminator or even have line terminators.
  • As the message says, you have a logical line greater than the LRECL of the mainframe data set.


Viewing all articles
Browse latest Browse all 8500

Trending Articles