Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

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

$
0
0
Author: Robert Sample
Posted: Wed Jul 20, 2016 6:25 pm (GMT 5.5)

The FTP code you are executing is perfectly acceptable. Your problem is NOT with FTP -- your problem is a data problem. Asking for sample code will NOT in any way help you, even if you got it.

Is the data being transferred from a Unix machine to a Windows machine before going to the mainframe? If so, I would guess that Unix line terminators are being used instead of Windows line terminators. Or, the data might not be in ASCII but a different code page (or even UTF-8).

Your easiest -- and best -- way to fix this is to stop asking questions on this forum, create a data set with 600 LRECL (since your original post said 600 bytes were transferred), FTP your data into this data set, and use TSO/ISPF edit to look at the data in hexadecimal. This should tell you if your line terminator is Unix or not. If you still have troubles with it after doing this, you can post (using the Code tag) your data in hex format so we can look at it and probably see the issue.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles