Good morning to everyone... i have a job, starting in parallel mode and then calling a server shared container which writes on 3 tables with "enable transaction grouping". to rollback all the tables i call UtilityAbortToLog (please don't tell me i can't use it in production, i MUST rollback, and it's the only way i found!)... the problem is that i have to save log (or rejected records) in a file to be sent to the user...and the system rollbacks even the file :D
how can i do?
writing log file after aborting job
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Split the job so that rows are written to a staging area (text files) by one job, then loaded (server job?) from those. That way you have preserved the data to be loaded even in cases where you need to rollback.
You can monitor the load in your load job so that, if you want to restart from a known point (say 50,000 rows have been committed) you can restart the recovery load from row number 50,001.
You can monitor the load in your load job so that, if you want to restart from a known point (say 50,000 rows have been committed) you can restart the recovery load from row number 50,001.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.