XCOM AS/400 receive file from windows truncates records or XCOMN0492E
search cancel

XCOM AS/400 receive file from windows truncates records or XCOMN0492E

book

Article ID: 368462

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows

Issue/Introduction

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.

  • For a text or binary file transfer this message was reported: XCOMN0492E MAXRECLEN exceeds limit for record packing
  • With BLOCKDATA(*NO) the text file transfers performed correctly
  • With BLOCKDATA(*NO) the binary file transfers truncates the received file records irrespective of the parameter TRUNCATION(*YES/*NO)

Environment

XCOM for Windows 11.6 SP03
XCOM for Windows 12.0

XCOM for AS/400 11.1

Cause

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.

Resolution

Adding parameter MAXRECLEN=1024 to the Windows xcom.glb file provides a workaround/resolution.

Additional Information

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.