Polling
Sends data between two sites, usually a branch computer and the HO server. Polling consists of several programs working in unison to create, filter and process data to a store. The programs are controlled by commin. The parameters used with the programs are accessed/altered by comaad.
General Polling Process
- Transaction or File Maintenance record changes are saved to a file
File is filtered and converted into a polling file. Filtering is determined by parameters set in comaad->Generate Options
Polling file is filtered for certain transaction/record types before sending to peer. Filtering is determined by parameters set in comaad->Distribute Options
- File is sent to peer
Peer filters file for certain transaction/record types. Filtering is determined by comaad->Process Options
- Peer adds transaction/record changes into it's own database
File Maintenance Records
When a new file maintenance record is added, a copy of the record (along with some extra information) will be placed in the "logfile" (log.dat). When you delete a record, an entry in the logfile will also be created. Altering a file maintenance record will create two entries in log.dat. One will be a snapshot of the record before the change and the other will be a copy of the record after the change.
XXaad creates entry(s) in log.dat.
logmin reads entries from log.dat and only outputs certain record types into slog.dat. logmin simply acts as a filter.
logmin reads entries from slog.dat and only outputs certain record types into rslog.dat.
- rslog.dat is sent to the other location
On the other computer, logmin reads certain entries from rslog.dat and outputs it to slog.dat
On the other computer, XXaad processes slog.dat and applies changes.
Transactions
XXeat creates an entry in daytrn.dat
sen2post copies the entries from daytrn.dat, adds a bit of extra information and outputs it to sendtrn.dat
sendpost reads sendtrn.dat and outputs certain transactions to rsndtrn.dat
- rsndtrn.dat is sent to other computer
On other computer, sendpost reads in rsndtrn.dat, filters transactions and outputs to sendtrn.dat
On other computer, reclstr converts sendtrn.dat to daycomm.dat, which just structurally the same as daytrn.dat
On other computer, XXpost will now add transactions to its transaction history file
Debtor Balances
sdbrep reads entries from debtr.dat and dumps closing balance into debbal.dat
- debbal.dat is sent to the other computer
On the other computer, rdbmin reads in debbal.dat and updates the closing balances for debtors
Stock Counts
spost or stpost places updated stock counts into stcount.dat in accordance to the option in pollcont
sscrep reads in stcount.dat, filters the stock counts and outputs to rstcount.dat
- rstcount.dat is sent to the other computer
On the other computer, rscmin reads in stcount.dat and updates the stock counts in the stock file
Order Deletions and Completions
XXeat adds entry in log.dat to denote that a Quote, Customer Order or Purchase Order has been completed
logmin reads entries from log.dat and only outputs certain record types into slog.dat. logmin simply acts as a filter.
logmin reads entries from slog.dat and only outputs certain record types into rslog.dat.
- rslog.dat is sent to the other location
On the other end, logmin reads certain entries from slog.dat and outputs it to another file
On the other end, oqdel (which is sieat, but renamed) deletes the completed/deleted quotes and customer orders from tran.dat
On the other end, podel (which is steat, but renamed) deletes the completed purchase orders from tran.dat
Tenders
XXeat adds entry in daytend.dat
stendmin reads daytend.dat, performs some record pointer conversions and outputs to sendtend.dat
stendmin reads sendtend.dat, filters the tenders and outputs to rsendtend.dat
- rsendtend.dat is sent to the other computer
On the other computer, stendmin reads rsendtend.dat, filters the tenders and outputs to stendtend.dat
On the other computer, stendmin reads in sendtend.dat and updates tender.dat
