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: steve-myers
Posted: Wed Jul 20, 2016 10:36 pm (GMT 5.5)

sathyajes wrote:
Hi Robert,

Thanks for your valuable information. Initially the file is created in Linux server and moved to windows server. from there, mainframe FTP job is trying to pick the file.

Already we have tried with LRECL as 600 and data was written without truncate. We put hex on, and found that X'25' in end of each line. Please help us.
OK. It appears the data was from the *nix system as a "binary" file. It does not have Windoze style line terminators. This means you cannot send it to a mainframe FTP as an "ASCII" transfer. As I see it you have four options.
  • Send the data from the *nix system to the Windoze system as an "ASCII" transfer so the Windoze FTP will build a proper Windoze text file.
  • Send the data to the mainframe as is as a "binary" transfer and convert the data to mainframe style data yourself.
  • On the Windoze system, rebuild the data using Windoze style line separator in place of the *nix line separators, and send the resulting data to the mainframe as an "ASCII" transfer.
  • Get the Windoze system out of the loop and transfer the data directly from the *nix system. Personal opinion: this is the simplest option. Why was the Windoze system in the loop anyway?


Viewing all articles
Browse latest Browse all 8500

Trending Articles