Previous Topic: XTCNET

Next Topic: Coding XTC Transfers in an XCOMPLEX Environment


Coding Interdependent Transfers

This section explains how to code a set of interdependent transfers in the SYSIN01 DD statement.

Example

The following sample definition contains three interdependent transfer requests:

//SYSIN01 DD *
NEWXFER                               /*Transfer request 1 follows*/
TYPE=SEND
FILE=A.B.C
LFILE=MY.FILE1
XTCNET=METS
XTCJOB=PAYROLL
HOLD=YES
NEWXFER                               /*Transfer request 2 follows*/
TYPE=RECEIVE
FILE=YOUR.FILE
LFILE=MY.FILE2
XTCNET=METS
XTCJOB=PAYME
HOLD=YES
NEWXFER                               /*Transfer request 3 follows*/
TYPE=SEND
FILE=PC.FILE
LFILE=MY.PC.FILE1
XTCNET=METS
XTCJOB=GETDATA
XTCGOODREL=PAYROLL
XTCGOODPURGE=PAYME
XTCERRPURGE=PAYROLL
XTCERRREL=PAYME
/*
//

In this example, the three transfer requests are identified as GETDATA, PAYME, and PAYROLL, and they belong to the group METS. Of these, GETDATA is the parent transfer request, that is, the request that tries to execute first and the execution of which controls the subsequent execution of the other two (dependent) transfer requests. Four XTC parameters (other than XTCNET and XTCJOB) are associated with the transfer request GETDATA. XTCGOODREL=PAYROLL means that the PAYROLL transfer belonging to the same group (METS) as GETDATA is to start if GETDATA completes successfully.

At the same time, the PAYME transfer is to be purged from the transfer request queue (XTCGOODPURGE=PAYME). However, if GETDATA does not complete successfully, then the PAYROLL transfer is to be purged (XTCERRPURGE=PAYROLL) and the PAYME transfer is to start (XTCERRREL=PAYME).

Note:TYPE=SCHEDULE is required for XTC transfer requests.