How the system gets it's data:

This Customer Loyalty System was designed to work with figures generated by an Electronic Point of Sale system supplied by another company. It receives input via a disk file created by the EPOS program:

LOYALTY.IFC

1,29-11-98,14:23,-12 , 2 ,M2B00002
2, 1219 , 1 , 245
2, 1227 , 1 , 125
2, 706 , 1 , 180
2, 90 , 1 , 150
2, 90 , 1 , 150
3, 5
1,29-11-98,14:24,-52 , 2 ,M2B00107
2, 1250 , 1 , 100
2, 1250 , 1 , 100
2, 1223 , 1 , 175
2, 1223 , 1 , 175
3, 4
1,29-11-98,14:35,-12 , 2 ,M2B00200
2, 90 , 1 , 150
3, 1

The file contains records of purchases made in conjunction with a swipe card.
The number of the card is held in the first line of a transaction, along with the time and date of the purchase.
The following line or lines, beginning with "2", hold the stock or PLU number, the quantity, and the unit price of an item in the sale.
There is a check after the sales on the number of transaction items.

The operator need not be concerned with the above.

Select File Process LOYALTY.IFC

and wait while the file is processed.

The original file is archived, and transactions are recorded in the database: BLMS.DAT
Any lines that fail checks in the parsing procedure are logged to a file: SPOOF.LOG
Finally, a message displays the number of records processed, and if errors were encountered, the operator is warned, and SPOOF.LOG is displayed so that appropriate action may be taken.

Customer Loyalty