IBM Support

FTP client receives EZA2537E message or FTP server receives 451 error message

Question & Answer


Question

The FTP client issues message EZA2537E or the FTP server issues a 451 error message indicating that a file transfer failed because a record was longer than the specified LRECL.

Here are the texts of the messages seen:

 EZA2537E File transfer failed. File contains records that are longer than the LRECL of the new file.
 
 451-File transfer failed. File contains records that are longer than the LRECL of the new file.

Answer

In the FTP.DATA configuration data set, the TRUNCATE parameter has a default value of TRUE. This means that if the WRAPRECORD parameter is set to FALSE and an input record is longer than the LRECL of a new file, the record will be truncated to the size of the LRECL.

With the Communications Server for z/OS product are shipped the following sample FTP.DATA data sets:

 SEZAINST(FTCDATA)
 SEZAINST(FTPSDATA)  

Most parameters in these samples have the default value set. However, for the TRUNCATE parameter, the value is set to FALSE. This means that if a record needs to be truncated, an error will be set and the FTP job will fail. This is done to insure that the data transfer is not reported as a success when some of the data has not been transferred.

If you do not wish to have an error issued and your FTP job failed because a record is longer than the LRECL, be sure to use the default value of TRUE for TRUNCATE. You can accomplish this by specifying the following command sequence:

 quote site truncate       ;   indicates data is to be truncated
 put  source-file target-file
 quote site notruncate  ;   turns off data truncation

Alternatively, by setting the WRAPRECORD parameter to TRUE, you can avoid the loss of data. This will result in any data received in addition to the LRECL being added to the next record if no new-line character is received.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"","Version":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Product Synonym

ZOSCS COMMSERVER

Document Information

Modified date:
27 September 2016

UID

dwa1306597