XCOM for z/OS to XCOM for Windows transfer using a file server share for the destination remote file.
The jobs are currently being sent to FILESRV1 with remote file name: \\FILESRV1\...
The file server has changed to FILESRV2 and we want to be able to automatically redirect the file to FILESRV2 without having to change the z/OS JCL jobs.
How can this be done?
XCOM™ Data Transport® for Windows
XCOM™ Data Transport® for z/OS
XCOM™ Data Transport® for UNIX/Linux
The XPRECMD (Use the Preallocation Script) was used to modify the destination file name i.e. modify the file server name from FILESRV1 to FILESRV2 before the file transfer is processed.
Detailed steps:
echo %file% >> c:\temp\test\xcompre_trace.txtset "file=%file:FILESRV1=FILESRV2%"echo %file% >> c:\temp\test\xcompre_trace.txt%xcomqm% -p%local_reqno% LOCAL_FILE=%file%exit%file% which represents the remote file name. Therefore that variable value is updated and then in turn used for the XCOM LOCAL_FILE parameter.%file% to file xcompre_trace.txt are optional for testing purposes)XPRECMD=%XCOM_HOME%\Xcompre.bat
After restart of the xcomd service subsequent transfers created the file under the required \\FILESRV2\...