Trailing blanks missing after FTP.

Document ID : KB000050381
Last Modified Date : 14/02/2018
Show Technical Document Details


When FTPing from the stack to a server the trailing blanks are stripped from the file.


When trying to FTP a file with RECFM=FB from the mainframe to a server using TCPaccess it can sometimes occur that all trailing blanks are stripped off, and the resulting file on the server has the CRLF in the right-most non-blank position of each record.

To pad the records so that all trailing blanks remain and the CRLF is still at the end of the record, add SITE NOSTRIP to the FTP statements somewhere before the PUT.

If this does not resolve the problem, try using QUOTE SITE NOSTRIP.

If the problem persists, please contact support.