Previous Topic: Coding Interdependent Transfers

Next Topic: Example 2


Example 1

This sample definition contains three interdependent transfer requests that are defined in a CNF configuration file.

TRANSFER_TYPE=4
REMOTE_SYSTEM=10.10.10.10
LOCAL_FILE=C:\TEMP\ABC.TXT
REMOTE_FILE= C:\TEMP\REMOTE.TXT
FILE_OPTION=REPLACE
XTCNET=METS
XTCJOB=PAYROLL
HOLD_TRANSFER=YES
#==============================
CONTROL=NEWXFER
#==============================
TRANSFER_TYPE=4
REMOTE_SYSTEM=10.10.10.10
LOCAL_FILE=C:\TEMP\DEF.TXT
REMOTE_FILE= C:\TEMP\REMOTE2.TXT
XTCNET=METS
XTCJOB=PAYME
HOLD_TRANSFER=YES
#==============================
CONTROL=NEWXFER
#==============================
TRANSFER_TYPE=4
REMOTE_SYSTEM=10.10.10.10
LOCAL_FILE=C:\TEMP\GHI.TXT
REMOTE_FILE= C:\TEMP\REMOTE3.TXT
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: XTC is not supported by QUEUE=NO transfer requests.