View previous topic :: View next topic
|
Author |
Message |
kappa
New User
Joined: 24 Aug 2006 Posts: 2
|
|
|
|
Hi all,
I have got a problem.
Program A is calling another program B. Program B is accessing database and it is taking so much time and it is not returning any thing to calling program.
Can we write a cobol program such that the main program abends if the program B is not returning anything even after 5 mins?
Sridhar kappa. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
I think that would not solve the problem. Better have a nearer look at your programm-b. Do an interaktive trace an correct the programm, because i think it's not probably working.
Regards, UmeySan |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Why don't u assign TIME=5 parameter in your JCl that executes your Cobol program. |
|
Back to top |
|
|
kappa
New User
Joined: 24 Aug 2006 Posts: 2
|
|
|
|
But we have around 1 million records and everytime we cannot decide what time exactly we need to code in JCL. If we code more time, it will take more time if we have 1000 such records in it... |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Kapper,
You don't exactly say what pgmB is attempting, but database access should not take that kind of time. Umeysam is correct. Either you are making an inappropriate DB request or something is wrong w/pgmB. |
|
Back to top |
|
|
|