== Polling Notes - First Session == Author: '''Jess''' Programs and flow of various types of data in polling: FILE MAINTENANCE: staad (logs any changes made) | log.dat draad (logs any changes made) | log.dat commin takes control of scripting following steps: log.dat | logmin log.dat slog.dat (takes only new changes, Converts any unconverted pointers) | slog.dat | logmin -a -r3 -BLOCA -r8 -r9 slog.dat rslog.dat (filter appropriate for recieving store. filters for all locations before specifier3=DEBTR_LOG, see log.h) | rslog.dat | send####.zip (with other files to be sent at same time) | File Transfer to branch | send####.zip | rslog.dat | staad -f rslog.dat (Processes all changes from staad, converts converted codes to new pointers) draad -f rslog.dat (Process all changes from draad, converts converted codes to new pointers) (all other appropriate aad programs also run on same file) TRANSACTIONS: sieat (links completed working copy of transaction in to dayfile list, posting sets first post flag) | daytrn.dat steat (links completed working copy of transaction in to dayfile list, posting sets first post flag) | daytrn.dat commin takes control of scripting following steps: daytrn.dat | sen2post -fdaytrn.dat -osndtrn.dat 36 -BLOCA 21 22 23 (filter appropriate for recieving store and convert pointers. Equivalent to logmin WITHOUT -a. 36=GVSALE, see log.h) | sendtrn.dat | send####.zip (with other files to be sent at same time) | File Transfer to head office | send####.zip | sendtrn.dat | reclstr -f rsndtrn.dat -o daycomm.dat -r errorfile (Convert codes back to pointers and | spost -f daycomm.dat (Processes all customer transactions from polled file, sets second post flag.) stpost -f daycomm.dat (Processes all stock transactions from polled file, sets second post flag.) (all other appropriate post programs also run on same file) TENDERS: sieat | daytend.dat commin takes control of scripting following steps: daytend.dat | stendmin | sendtend.dat | File transfer to head office | sendtend.dat | stendmin | tender.dat STOCK COUNTS: commin takes control of scripting following steps: stock.dat | sscrep | ?????.dat | File transfer to branch | ?????.dat | rscmin | stock.dat DEBTOR BALANCES: commin takes control of scripting following steps: debtr.dat | sdbrep | ??????.dat | File transfer to branch | ??????.dat | rdbmin | debtr.dat DIRECTORIES USED BY POLLING (commin): CCDIR/COMPANY/POLLING_LOCATION(branch)/send/ Directory containing files to be sent to this branch. CCDIR/COMPANY/POLLING_LOCATION(branch)/send/lastsend File containing sequence number of most recent generated send file. CCDIR/COMPANY/POLLING_LOCATION(branch)/send/back/ Directory containing backup copies of old sendfiles. CCDIR/COMPANY/POLLING_LOCATION(branch)/receive Directory containing recently recieved but not yet processed files for this branch. CCDIR/COMPANY/POLLING_LOCATION(branch)/receive/lastrecv File containing sequence number of newest sendfile sucessfully recieved. CCDIR/COMPANY/POLLING_LOCATION(branch)/receive/stuffed/ Directory containing old files that failed "unzip -t" test for transfer errors. CCDIR/COMPANY/POLLING_LOCATION(branch)/report Directory containing copies of report output to be transferred to head office. (or, recieved by head office) COMAAD NOTES: "Detatched" operation generates sendfiles but does not try to transfer. Generate options: Local branch ... args: ALL or list of numbers seperated by spaces. Stock Counts: ALL or list of branch names seperated by spaces. debtor balances: Y/N create tenders...: ALL, blank. Process options: ... progs to be run: ALL or list of program prefixes. dr(aad) s(post) etc. Distribute options: determines what data branch should be sent from HO. for own group, assoc group parameters: own = same as us, usually do everything within group. assoc = other groups, perhaps just do gift vouchers. File maintenance options can be "ALL_BRANCH" for "normal" set of data sent to branches. ---- == Polling Notes - Second Session == ---- CategoryPolling