I found out why data was being truncated and the reason was because my file is a very big line with data. Is there an option in FTP where I can specify that I want data to be cut every 200 bytes and write lots of lines instead of only one?
FYI. I was uploading using FTP script, not using option 6 as it was very slow since the host i connected to is very far away (Houston) while i am here in Bangkok.
Joined: 26 Apr 2004 Posts: 4648 Location: Raleigh, NC, USA
No, not that I've seen documented.
I see that you have two options here:
1. Re-format the data to your required specifications on the server before invoking the FTP process to the mainframe.
2. FTP the data to a dataset allocated as RECFM=FB LRECL=200 in binary (image) mode. The ASCII data should wrap into the 200-byte records. Then, you'll need to write a program to un-wrap the records as required and translate them from ASCII back into EBCDIC.