Front Office Loader User Manual
Front Office Loader User Manual
or
foltst filenamefol connects to a specific intranet deal server (servername) port (portnumber). Once connected, fol gathers deal data from this connection which it loads into the designated Front-Office system. If the optional argument filename is present, fol also appends a text record to the named file for each deal that is received. The format of this file is suitable for use with the foltst program (see later).
foltst reads deals from a textfile dumped from the fol program, loading each deal into the designated Front-Office system.
DL_SYBASE_IFILE On UNIX DBLIB deal loaders, this variable may contain the location of the Sybase Interface File that defines how to contact the database server host.
If fol is left running overnight, a new logfile is automatically created as soon as necessary after midnight.
foltst does not create logfiles, rather all its output is directed to the "standard output" stream. foltst is designed as a minimal facility, "oneshot" deal loader. If foltst's output will need to be examined at a later date its output may be directed to a file using command-line redirection at a DOS or UNIX command prompt e.g.
foltst dumpeddeals > logfile
- TCID:######
Where TCID is the 4 character deal-server identifier e.g. QUOT or WAGA and the hashes represent the digits of the ticket number. - [1]<SourceDesignator>
Where SourceDesignator is the single character 'E' for EBS or 'R' for Reuters and all other characters are literal i.e.'[1]<>' really means the chacters bracket, one, bracket, less-than, greater-than - [2]<DealData>
Where DealData is the actual data to be loaded and all other characters are literal. The DealData ends when the two-character sequence "greater-than" followed immediately by "newline" are detected, thus imbedded newlines are allowable within the deal data. Pathologically, this two-character sequence imbedded within real data will cause foltst to ignore the remaining data for the deal containing this sequence. This circumstance is deemed to be unlikely to cause any real problem (go ahead Murphey, prove me wrong :-} ).
Completely coincidentally, this file format is exactly what
is required as input to the foltst application. See
Appendix B for an example of this
file.
Lines, in the file db.conf, starting with the "hash" character (#) are ignored (they are comments or temporarily disabled configuration lines).
A line containing four (optionally five) white-space separated tokens is interpreted as follows:
- UserName
The name of a user authorized to load deals to the target database - Password
The password for the above database user - Server
The hostname or IP number of the database server - StoredProcedureName
The stored procedure name that will actually do the database insert - UseParameter (optional)
An optional string representing the "use" parameter for the database server
See Appendix A for an example of this file.
On UNIX operating systems, SIGPIPE is caught and its passage is noted in the logfile.
# DBUserName passwd Server StoredProcName [UseName]
(this is a comment line)
me mypassword myDBServerHostName insert_pipe
WACO:43832
[1]<R>
[2]<999025WAGA04383223MAR20001322295000012
...snip... 581001 582001 583001 >
QUOT:44889
[1]<E>
[2]<999025QUOT04488901JUL199604000070100544889
...snip... 776015000000000000000>