Binary file transfer to XCOM for Windows is successful but 0 bytes are transmitted
search cancel

Binary file transfer to XCOM for Windows is successful but 0 bytes are transmitted

book

Article ID: 210570

calendar_today

Updated On:

Products

XCOM Data Transport XCOM Data Transport - Windows

Issue/Introduction

XCOM is sending a binary file of 1600 KB from AS/400 to Windows.  The Windows xcom.log shows the transfer was successful ("XCOMN0011I Transfer ended") with the expected number of records but it shows "0 bytes" transmitted and the resulting file is also empty.

Environment

  • XCOM™ Data Transport® for AS/400 i5/OS
  • XCOM™ Data Transport® for Windows

Cause

A binary file transfer was being executed with parameters LRECL=0 and TRUNCATE=YES. Any such transfer to XCOM for Windows results in an empty file because that combination means XCOM will only write 0 bytes and truncate the rest.

Resolution

Use TRUNCATE=NO for a binary transfer.

Additional Information

The XCOM for Windows documentation page for the TRUNCATE parameter has been updated for binary transfers.  See the updated description:
TRUNCATION