Transfer CFT 3.2.2 Local Administration Guide Procedure examples The command files described below provide the outlines for establishing end of transfer procedures using a syntax applicable to the Windows NT operating system. You can modify the file names and the method to activate CFTUTIL to work on other operating systems. See About CFTUTIL: Transfer CFT utility . Submitting an END command The end of send procedure described in this example, is used to declare correct transmission by the END command. The name of the procedure to be activated is determined by the value of the EXECSF parameter of CFTPARM. Example If the IDF of the file sent is PAY and if EXECSF = SF&IDF.CMD, the name of the file associated with this procedure is: SFPAY.CMD.REM REM REM -------------------------------------------------------- REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM OF FILE TRANSMISSION REM REM This procedure declares that the current transfer REM changes to the X state. REM REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDT &IDT TRANSFER IDENTIFIER REM REM --------------------------------------------------- CFTUTIL END PART=&PART,IDT=&IDT Submitting an end of receive procedure The end of receive procedure, described in this next example, is used to execute a particular type of processing on receiving a file with an identifier (IDF) PAY. The name of the procedure to be activated is determined by the value of the EXECRF parameter of CFTPARM. Example If EXECRF = RF&IDF.CMD, the name of the file associated with this procedure is: RFPAY.CMD. REM REM -------------------------------------------------------- REM REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM OF FILE RECEPTION REM This procedure executes the MYPROG program, passing REM the following symbolic variables as parameters: REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDF &IDF FILE IDENTIFIER REM IDT &IDT TRANSFER IDENTIFIER REM EDATE &EDATE END OF TRANSFER DATE REM ETIME &ETIME END OF TRANSFER TIME REM FNAME &FNAME NAME OF FILE RECEIVED REM REM REM ---------------------------------------------------- MYPROG &PART &IDF &IDT &EDATE &ETIME &FNAME If the transfer came from the SITEA partner, with a transfer IDT of A0112102, and if the execution of this procedure is interrupted before being completed, the user can re-activate it by the following command: CFTUTIL SUBMIT PART = SITEA, IDT = A0112102 Sending a response message In PeSIT D CFT profile, PeSIT E or ODETTE protocols, the end of transfer procedure can activate the sending to the party of a response message intended to inform that the transfer has been correctly completed. At the party end, the initial transfer entry changes to the (supplementary) A Acknowledged state. The end of receive procedure described in this third example, is used to activate this transmission on receiving a file with an identifier (IDF) PAY. The name of the procedure to be activated is determined by the value of the EXECRF parameter of CFTPARM. Example If EXECRF = RM&IDF.CMD, the name of the file associated with this procedure is: RMPAY.CMD. REM REM ------------------------------------------------------ REM REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM FILE RECEPTION REM REM This procedure allows an acknowledgement message REM to be sent at the end of file reception REM REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDT &IDT TRANSFER IDENTIFIER REM REM --------------------------------------------------- CFTUTIL SEND TYPE=REPLY, PART=&PART, IDM=MES1, IDT=&idt, MSG=’File PAY received’ Related Links
Procedure examples The command files described below provide the outlines for establishing end of transfer procedures using a syntax applicable to the Windows NT operating system. You can modify the file names and the method to activate CFTUTIL to work on other operating systems. See About CFTUTIL: Transfer CFT utility . Submitting an END command The end of send procedure described in this example, is used to declare correct transmission by the END command. The name of the procedure to be activated is determined by the value of the EXECSF parameter of CFTPARM. Example If the IDF of the file sent is PAY and if EXECSF = SF&IDF.CMD, the name of the file associated with this procedure is: SFPAY.CMD.REM REM REM -------------------------------------------------------- REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM OF FILE TRANSMISSION REM REM This procedure declares that the current transfer REM changes to the X state. REM REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDT &IDT TRANSFER IDENTIFIER REM REM --------------------------------------------------- CFTUTIL END PART=&PART,IDT=&IDT Submitting an end of receive procedure The end of receive procedure, described in this next example, is used to execute a particular type of processing on receiving a file with an identifier (IDF) PAY. The name of the procedure to be activated is determined by the value of the EXECRF parameter of CFTPARM. Example If EXECRF = RF&IDF.CMD, the name of the file associated with this procedure is: RFPAY.CMD. REM REM -------------------------------------------------------- REM REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM OF FILE RECEPTION REM This procedure executes the MYPROG program, passing REM the following symbolic variables as parameters: REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDF &IDF FILE IDENTIFIER REM IDT &IDT TRANSFER IDENTIFIER REM EDATE &EDATE END OF TRANSFER DATE REM ETIME &ETIME END OF TRANSFER TIME REM FNAME &FNAME NAME OF FILE RECEIVED REM REM REM ---------------------------------------------------- MYPROG &PART &IDF &IDT &EDATE &ETIME &FNAME If the transfer came from the SITEA partner, with a transfer IDT of A0112102, and if the execution of this procedure is interrupted before being completed, the user can re-activate it by the following command: CFTUTIL SUBMIT PART = SITEA, IDT = A0112102 Sending a response message In PeSIT D CFT profile, PeSIT E or ODETTE protocols, the end of transfer procedure can activate the sending to the party of a response message intended to inform that the transfer has been correctly completed. At the party end, the initial transfer entry changes to the (supplementary) A Acknowledged state. The end of receive procedure described in this third example, is used to activate this transmission on receiving a file with an identifier (IDF) PAY. The name of the procedure to be activated is determined by the value of the EXECRF parameter of CFTPARM. Example If EXECRF = RM&IDF.CMD, the name of the file associated with this procedure is: RMPAY.CMD. REM REM ------------------------------------------------------ REM REM EXAMPLE OF A PROCEDURE SUBMITTED BY CFT AT THE END REM FILE RECEPTION REM REM This procedure allows an acknowledgement message REM to be sent at the end of file reception REM REM LIST OF SYMBOLIC VARIABLES REM REM PART &PART PARTNER NAME REM IDT &IDT TRANSFER IDENTIFIER REM REM --------------------------------------------------- CFTUTIL SEND TYPE=REPLY, PART=&PART, IDM=MES1, IDT=&idt, MSG=’File PAY received’