KB Article #178342

Binary file is received incomplete in a Undefined file format

Problem

Binary file is received incomplete


Transfer did not have an error but listcat details are showing the different number of bytes transferred vs. written ?

Resolution


In the reported issue, the sender of the binary file was using in the CFTSEND macro a FLRECL set to 32767


On the receiver side, a FLRECL was set to 32760

The FLRECL from one side will not going to override the remote value, it is used to READ or WRITE data accordingly to the specified length.


FLRECL value can then be used to truncate or to pad data to a specific length for writing operations.


Here, the data are read in chunk of 32767 but written in a length of 32760 only and that is the reason of the missing data.