RESTORING CUSTOMER DATA

Get a reliable copy of the data and restore it onto the customers site.

Take a COPY of the restored data (so if you screw it up you have a good copy to do it again).setup a new company code and details

Get a copy of all the log file which you will be processing.

Name the log files in the order of processing. eg. log.05 log.06 etc

The following should be run on it. they need to be run in the correct order.

colaad brlaad crtaad craad caaad smaad drtaad draad glaad staad empaad bomaad crcaad criaad disaad driaad glsaad gsjaad meaad sizaad stiaad clraad

eg. craad -f log.05

COPY the daytrn files which need to be processed. eg. cp daytrn.11jun01.dat daytrn.05

Ensure that the summary totals are posted from the daytrn files as summary totals are not generated when you repost transactions

You will need the following files copied.

sendtrn.dat -> sendtrn.05 daycomm.dat -> daycomm.05

sendpost -f daytrn.05 -o sendtrn.05 ALL

reclstr -f sendtrn.05 -o daycomm.05

The files will need to be posted. They must be posted in the correct order

oqpost -f daycomm.05

stpost -f daycomm.05

spost -f daycomm.05

crpost -f daycomm.05

smpost -f daycomm.05

glpost -f daycomm.05

After the transactions are complete you need to update the branch record with all the next transactions number sequence and update the tender files.

cd /cc/RESTORE cp ../LIVE/branch.* . cp ../LIVE/tend*.* .

Now move RESTORE to the LIVE company

mv LIVE LIVE.old mv RESTORE LIVE

Notes:

- Make sure you copy the branch.* and tend*.* files.

If you are reposting transactions to fix a tran file, all the magic happens in reclstr

once you run the above procedure, reclstr will mark the transactions as "posted" if it thinks they already exist. This means that you can post a day file and it will skip any tran that as already been posted

in the daycomm.dat file you can check the flags

flags =1 posted

flag = 2 means posted via polling

flag = 16 means "bad posted" - we determined that this actually means dont post again.

So if you get a flag 19, it is dont post again,

flag 2 = it will post this transaction when you run spost

restore (last edited 2025-10-15 06:50:52 by JennyTinsey)