Receive this message when receiving a file via XCOM transfer: XCOMU0403E Cannot open output file: File exists
The user has the correct write permissions.
During the sending of files by a remote XCOM server, at the business level it is necessary that the file keep the same name in the path and that XCOM has the capacity to overwrite the file. Can any parameter be adjusted? Should the procedure be performed on the local server or on the remote server?
Release : 11.6
Component : CA XCOM Data Transport for Linux PC
As all transfers are different and it may not be desirable to execute "REPLACE file" functionality 100% of the time, it is the remote XCOM server that needs to decide/set whether the file will be replaced if it already exists. Therefore the remote/partner XCOM server that is initiating the transfer needs to set a parameter to force the file to be replaced on the receiving XCOM server.
For example :
a. On UNIX/LINUX and Windows there is the parameter FILE_OPTION which needs to be set to REPLACE:
CA XCOM Data Transport for UNIX/Linux 11.6.1 > Reference > XCOM Parameters > List of Parameters > FILE_OPTION
CA XCOM Data Transport for Windows 11.6 Service Packs > Reference > List of Parameters > FILE_OPTION
For both the above the default value is CREATE.
b. On z/OS there is the FILEOPT parameter where the default value is REPLACE:
CA XCOM Data Transport for z/OS 12.0 > Using > The Batch Interface > SYSIN01 Parameters > FILETYPE=FILE Parameters