M
Member 310024
Guest
Is there an industry best practice for avoiding -911 errors in COBOL/DB2? How does DB2 work behind the scenes? For example, does DB2 retry for a couple of times, or does it crash on the first deadlock? Does the DBA set some sort of parameter which directs DB2 what to do in the case of a deadlock? Would it be acceptable to pause the program (say, by a dummy module which loops for 1 second) after trapping the -911 return code, and then trying again? Would that work? Would the currency of the FETCH remain correct ie would the FETCH retry the same record that 911'd, or would it try the next record?