| |
 |
The LIVE directory |
| |
 |
4XTRA data resides on a network file server where live data is stored in a directory named as S:\4XTRA\LIVE. There are a further three sub-directories that relate to major sets of data (see below) |
| |
 |
The BGND directory |
| |
 |
Background machines duplicate the LIVE data and data structures to service background processing, this device also provides fault tolerance and addresses performance considerations. The integrity of these multiple copies of data is preserved by the background task scheduler. |
| |
 |
The BGND directory is also used for a copy of the console control file (which is used to co-ordinate the overnight run across the various background PCs) and other temporary files which stand outside or above the overnight run itself. |
| |
 |
The major sets of 4XTRA data: |
| |
 |
DATA - |
| |
 |
On the "server" this directory holds all files other than position files and external feeds, which are used by the on-line facilities. |
| |
 |
Locally, it is the temporary area for files produced by the last batch task. |
| |
 |
Data directory cycle |
| |
 |
The main file activity in an overnight run occurs within the BGND\DATA directory. |
| |
 |
Any files in the overnight that are written to, must be in the DATA directory, whether the file is created from scratch, written to serially or updated on a random access basis. |
| |
 |
All files in the LIVE\DATA directory on the server are copied to the BGND\DATA\CLOSE directory on the local drive. |
| |
 |
Upon completion of a task the files in the BGND\DATA directory are compared to the files in the BGND\DATA\CLOSE directory. |
| |
 |
If an earlier version is present in the CLOSE directory, the new version is assumed to be needed for the next trading day. The file is copied to the server LIVE\DATA\END directory and moved to the local BGND\DATA\END directory. |
| |
 |
If the file is not found in the CLOSE directory, it is assumed to be a file for passing information between tasks, and not for use the next day. It is copied to the server LIVE\DATA\DURING directory and moved to BGND\DATA\DURING locally. |
| |
 |
If a single stand alone machine is running the batch (in the case of, say, a network failure) the copies to the server are naturally omitted, but the file moves between CLOSE, DURING and END still occur. |
| |
 |
POSN - Position or Ladder Files |
| |
 |
A position or ladder file exists for every 'currency pair position` combination traded to. On the server the LIVE\POSN contains the current on-line ladder files. Locally it is empty. |
| |
 |
The position files are updated at only two points in the overnight sequence: |
| |
 |
Upon processing any deals from a batch-fed external load, which creates the DURING version of the positions. |
| |
 |
By the NEWDAY task, which does the final revaluation, profit and loss sell off and rolls the files to the new working day, which creates the END and NEWDAY versions of the positions. |
| |
 |
Positional directory cycle |
| |
 |
The sub-directories contain the various intermediate processing stages produced by the batch run: |
| |
 |
BEGIN the positions as at the start of the trading day i.e. before being updated by any trading activity. |
| |
 |
CLOSE the positions as updated by the dealers during a trading day (and verified by the LADDERS task). |
| |
 |
DURING the positions during overnight run, after any intermediate changes but before final revaluation and roll on to new day. |
| |
 |
END is the final close of business positions after any external update, after the final revaluation (with closing rates) and before the profit sell off. |
| |
 |
NEWDAY positional files as at the end of the Overnight Run and prepared for the following days trading. Note NEWDAY will be the BEGIN version for the next day. |
| |
 |
On a batch processor's local drive there are no files in the POSITION directory itself. The server copies of the previous day's NEWDAY files are switched to BEGIN, and the POSITION directory files to CLOSE by the first task of the overnight. |
| |
 |
EXTL - External Data |
| |
 |
Held in sub-directories under EXTL are three sub-sets of external data. |
| |
 |
Import - Repository for data being imported into 4XTRA. files are read-only. |
| |
 |
Export - Write-only by convention - destination for exported data. |
| |
 |
Report - Reports are created locally, one copy per recipient, plus a copy for on-line browsing. |
| |
 |
When the files have been sent to the printer, the reprint /browse file is copied to the server and the user copies deleted. All Machines involved in the batch take a local copy of every report spool image, import and export file. |
| |
 |
Logical File Names |
| |
 |
No 4XTRA task, either on-line or in the overnight batch, makes direct reference to a file name. All processes use logical file names from a central directory. The pointers from these names to actual DOS files are also held in this directory. It is this feature which allows the system to utilise separate data sets on the same network, switch drives and so on without effecting the system code. |
| |
 |
For any task to access a file (the on-line day is considered to be a single task) it must have a group definition on the logical names file which contains the reference name(s) it can use to manipulate the files. This enables the utilities to identify all parts of the system which refer to a given file. File groups are organised in the same way, and manipulated by the same utilities, as the system file. |
| |
 |
File Structures |
| |
 |
File structures are standardised, with reserved records, standard directory layouts and locations, file descriptors etc. For individual file descriptions refer to the document 4XTRA System Documentation - File Descriptions. |
| |
 |
|