ERROR: XCOMN0302E Unable to open local input file: No such file or directory XCOM
search cancel

ERROR: XCOMN0302E Unable to open local input file: No such file or directory XCOM

book

Article ID: 196037

calendar_today

Updated On:

Products

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

Issue/Introduction

When the filename has Cyrillic characters or bullets, copyright symbols or registered symbols XCOM cannot transfer these files. 

This is the error that XCOM displays:

XCOMN0302E Unable to open local input file: No such file or directory

Environment

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

Cause

XCOM transfers are failing intermittently due to some special characters or special encodings used in the file names. Since the filenames are being generated from external sources, there is no control over the filenames.

Resolution

XCOM can handle only ASCII characters in filenames and it cannot handle the Unicode characters in file names. To circumvent the problem, the preallocation exit script can be used to execute custom code before executing the actual transfer and check for possible special characters in the file name. Preallocation scripts can be used to update the LOCAL_FILE, REMOTE_FILE parameters of the transfer configuration.

XPRECMD in the xcom.glb file specifies the prescript file path. A sample script that shows how to use the "xcomqm -p" option to update the parameters can be found at %XCOM_HOME% with the name Xcompre.bat.