An improved method and system for logging transaction records in a computer
system. The method may include writing a confirmation log record to the
log file for a transaction that completes normally, and not writing a
confirmation log record for transactions that are aborted. The log file
may be unloaded periodically by an unload program. The unload program may
write transaction log records accompanied by a confirmation log record to
a good output file and transaction log records not accompanied by a
confirmation log record to a suspended output file. On a subsequent
execution, the unload program may combine the log records in the log file
and the suspended file. The unload program may write transaction log
records accompanied by a confirmation log record to a good output file.
The unload program may write transaction log records not accompanied by a
confirmation log record and which have not exceeded a transaction time
limit to a suspended output file. The unload program may write transaction
log records not accompanied by a confirmation log record and which have
exceeded a transaction time limit to a disposal output file. The
transaction log records in the good output file may then be processed
normally by log processing programs.