XCOM for AS/400 (iSeries) performing a receive file from XCOM for Windows with BLOCKDATA(2K) a.k.a. the record packing feature.
After upgrading XCOM for Windows from 11.6 SP02 to SP03 these problems started to occur i.e.
XCOM for Windows 11.6 SP03
XCOM for Windows 12.0
XCOM for AS/400 11.1
The root cause of the problem is related to the change of the MAXRECLEN system default from 1024 to 31744 (31K) in the XCOM for Windows 11.6 SP03 release.
Adding parameter MAXRECLEN=1024 to the Windows xcom.glb file provides a workaround/resolution.
This problem does not occur when doing a similar receive file on z/OS from Windows due to other related code changes that have already been made. They provide the z/OS data set record length in the DCB RECL field so that Windows can set the MAXRECLEN parameter correctly.