XCOMN0438E or XCOMU0438E "Record length greater than maxreclen ..."
search cancel

XCOMN0438E or XCOMU0438E "Record length greater than maxreclen ..."

book

Article ID: 25662

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows XCOM Data Transport - Linux PC XCOM Data Transport - z/OS

Issue/Introduction

What can cause this message under XCOM for Windows or XCOM for UNIX/Linux respectively:
XCOMN0438E Record length greater than maxreclen, but truncation not allowed.
XCOMU0438E Record length greater than maxreclen, but truncation not allowed.

Environment

XCOM™ Data Transport® for Windows
XCOM™ Data Transport® for Linux PC
XCOM™ Data Transport® for z/OS

Resolution

  1. When XCOM sends a text file, the MAXRECLEN parameter specifies the maximum number of bytes allowed in a record. If XCOM encounters a record longer than this during the transfer, it terminates the transfer with one of the reported error messages:
    XCOMN0438E Record length greater than maxreclen, but truncation not allowed.
    XCOMU0438E Record length greater than maxreclen, but truncation not allowed.

    However, if the parameter TRUNCATE=YES has also been specified, XCOM does not terminate the transfer, but discards the extra bytes and continues the transfer.


  2. When XCOM sends a binary file, this value indicates the length of the records that are transferred. Therefore, for binary transfers sent to the mainframe, the MAXRECLEN parameter should match the LRECL size on the mainframe side. When receiving a binary file, MAXRECLEN is automatically set to whatever the LRECL value is on the partner side.


  3. For RECEIVE transfers between Windows and UNIX or Linux systems, the Max. Record Length value specified by the initiating system is sent to the remote system, which uses this value to set its Max. Record Length value.

Additional Information

NOTE:
If this is a first time occurrence of the error and the file being transferred is a text file, it would be worth checking if there is at least one record (line) with extra unwanted characters, e.g. trailing blanks, that might be padding the record length beyond the expected size causing the current MAXRECELN value to be exceeded.

XCOM™ Data Transport® for Windows 12.0 > Reference > List of Parameters > MAXRECLEN
XCOM Data Transport for UNIX/Linux 12.0 > Reference > XCOM Parameters > MAXRECLEN