ImpactUpload UtilityThe ImpactUpload utility generates Impact Simplified External Transaction Files when the front-office completes trades with the afs:TRADE application. This utility is controlled via an ImpactUpload section in the afstrade.ini file.
Each file's name is defined as follows:
As trades are completed, these files are written to disk by ImpactUpload. ImpactUpload then attempts to send the each file to FTP_MACHINE via ftp. If the ftp fails, the file remains in the queue directory. ImpactUpload will attempt to ftp the file again the next time an Impact file is created. Immediately after the file is delivered to the ftp machine, a corresponding "trigger" file (.trg) is ftp'd. Once the trigger file has completed sending, the file is archived to the sent directory. There should be no files in the queue directory at the end of the day. If there are, they may be manually ftp'd to the ftp server. We also recommend that the sent directory be purged after all transactions have been verified in the back-office. OperationRun the application and a database login panel appears (or see Running applications from the command line). Once successfully logged on to the database, an ftp login appears. This requires a valid username and password for access to the FTP_MACHINE defined in the ini file. The utility then performs ping and connect operations to verify the connection. If an error occurs, the user has the opportunity to quit, continue and only create files locally, or try to re-login to the ftp machine. The ImpactUpload form appears after the ftp connection is verified. If the utility was started after trading has begun, it will play "catch-up" and process all events up to the last ticket event. The log which is displayed on the form is written to the log directory as Ticket_Impact.log. On startup, an already existing log file is archived with the current date/time stamp. The sequence directory contains 2 necessary files: the last event handled by the app (ImpactEvent.seq) and the last ticket sequence number (TicketImpact.seq). These ticket sequence files may be destroyed as part of the end-of-day process. Both files are created (with value of 0) at startup if they do not yet exist. The ImpactEvent.seq file MUST be destroyed when the events are cleared. After an Impact file has been created, ImpactUpload sets the tckdtl.is_bop value to indicate the status of the Impact upload
as follows: Example ini file
|