I'd try using ftp with the same data and compare results.
In reply to Re: Net::FTP to Mainframe Z/OS by sasdrtx in thread Net::FTP to Mainframe Z/OS by jazzycat