Previous Topic: Example 1

Next Topic: Example 3


Example 2

This sample definition is controlled by the HOLDCOUNT parameter, as 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
HOLDCOUNT=2
#==============================
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
XTCGOODDECR=PAYROLL
#==============================
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
XTCGOODDECR=PAYROLL

In this example, the three transfer requests are identified as GETDATA, PAYME, and PAYROLL, and they belong to the group METS. Of these, PAYME and GETDATA are the parent transfer requests, that is, the requests that try to execute first. PAYME does not attempt to execute until the HOLDCOUNT value is zero.

XTCGOODDECR=PAYROLL means that the PAYROLL transfer belonging to the same group (METS) as GETDATA is to have its HOLDCOUNT value decremented if GETDATA completes successfully. Similarly, XTCGOODDECR=PAYROLL in PAYME in the same group (METS) also decrements the HOLDCOUNT value in PAYROLL if PAYME completes successfully.

If both GETDATA and PAYME complete successfully, the HOLDCOUNT value in PAYROLL becomes zero, and then PAYROLL attempts to be executed. However, if either GETDATA or PAYME fails, the PAYROLL HOLDCOUNT value remains with a non-zero value and PAYROLL is not executed.