February 10th, 2010, 07:24 AM
I've got a problem regarding files getting truncated when they reach a particular size and we FTP them. We have an automated process in place that automatically creates flat files to send via FTP and then uses CURL to send any files that may need to be sent.
We currently have it so we can edit a table to add additional commands to the Curl FTP session, which is where we currently set SITE LRECL=5000, which obviously means that the files are going to be created with that size.
The problem is the files we send vary in length and we have had some files we have sent that are greater than the allowable length and therefore are getting truncated.
Is there any FTP command we can use which will allow the length to be set depending on the file being sent.
Thanks a lot