How To Handle Deadlock In Db2 Substring