Thanks Troels. It's a good option for what my requirement is. For this, the script should run quite frequently, so that, it tries to capture most of the locakwait. But my team Leader was not ready to run very frequently.
Then we planned to use sysibmadm.snapdb from where we hold, total count and then compare with new total count. By the way , through this way, my expected requirement is not meeting but we thought to run this script for every 5 mins.
Thanks again.
Shashi