Post Transfer Script: XCOMEND

Use the XCOMEND script for all types of transfers, after a transfer is finished and partner communications have ended, whether the transfer completed successfully or not.
xdtw1161
Use the XCOMEND script for all types of transfers, after a transfer is finished and partner communications have ended, whether the transfer completed successfully or not.
XCOMEND.BAT is a batch file that is invoked by a 
CA XCOM Data Transport
 transfer program. This script can be used as provided, or it can be used by system administrators to modify printing commands and parameters to provide additional information about all types of transfers (remote and local; send and receive; successful or failed). Different arguments are passed depending on whether the transfer is a file, job, or report. This script can be used to define the context of the transfer, such as indicating that a remotely initiated send transfer failed with a particular message.
Sample XCOMEND Script
The sample XCOMEND script, xcomend.bat, is installed during the installation of 
CA XCOM Data Transport
 and can be found in your site’s installation directory.
Example:
 
To delete local file after successful transfer XCOMEND may contain the below lines:
 
echo file name: %file%
 
 
echo status : %status%
 
 
if NOT /%status%/ == /"SUCCESSFUL"/ goto END
 
 
del %file%