Add a TYPE=INQUIRE job to capture the results of the transfer. The primary use of TYPE=INQUIRE is in batch job streams where some jobs or job steps are dependent upon the successful completion of other jobs or job steps that transfer files. The dependent steps can execute conditionally based on the return code issued by TYPE=INQUIRE.
Unlike the TYPE=EXECUTE and TYPE=SCHEDULE modes, TYPE=INQUIRE does not initiate a file transfer. TYPE=INQUIRE examines the status of transfers that were previously initiated by TYPE=SCHEDULE. TYPE=INQUIRE waits until the transfers have completed or the specified timeout (INQWAIT) has passed and issues a return code reflecting the status of the transfers.
There must be a unique XCOMINQ dataset for each group of interdependent transfers and the same //XCOMINQ DD dataset must be specified for each transfer in the group.
Sample JCL for creating an XCOMINQ dataset is included in the CBXGJCL dataset for 11.6 and the CBXGSAMP dataset for 12. The XCOMINQ dataset must NOT be created in the same job step as the TYPE=SCHEDULE job.
XCOM™ Data Transport® for z/OS
How this works:
The location of the Sample JCL is also included in the XCOM User Guide. Here is the link to the documentation for XCOM Data Transport for z/OS - 12.0