AFS Swap ImporterThe Swap Importer reads in an ASCII file of swaps and saves them to the afstrade database. This application requires 1) the afstrade.ini file to determine which database to save the swaps and 2) the afscalc.dll file to perform calculations when creating tickets associated with the swaps. After double clicking on the AFS_Swap_Importer, the Swap Importer form is displayed: To process a file of swaps, click on the Browse... button and select the file to process. The file is read and the Total number of records (swap legs) is displayed. The actual number of swaps is less than what is displayed. Click on the Process button and the swaps in the file are saved to the afs:TRADE database. Once started, you can click on the Cancel button to stop processing, but the process will not actually be stopped until after the current swap is saved. After you process a set of swaps, you may click Browse... again to select another file. If you want to re-process the current file, and that file has changed, you need to select it through the Browse... button again. While processing, status messages, indicating inserted swaps, canceled swaps, and errors, are displayed in the scrolling text area. These messages are also stored in a log file in c:\temp or in the directory pointed to by the LogFileDirectory item in the [Afstrade] section of afstrade.ini. The name of the log file is of the form AFS_Swap_Importer_yymmdd_hhmmss.log. A corresponding .txt file is also created containing just the lines that failed, so one could edit this file and then reprocess it as is. Swaps created with the importer have the following defaults:
In addition to the standard AFS command line parameters, the following are valid command line parameters
See also: |