I guess, there is a deadlock somewhere.
You are guessing wrong. It is entirely possible that the program is running normally but just ran out of time. You need to talk to someone AT YOUR SITE -- coworkers, team leader, manager, or site support group -- to find out how to resolve this issue. Many sites put time restrictions on certain job classes, and if your job is running in a job class that has such a restriction, you will NOT be able to run the program to normal completion without changing the job class. And only someone working at your site can tell you the rules for your site.