View previous topic :: View next topic
|
Author |
Message |
Nirav721
New User
Joined: 11 Feb 2008 Posts: 53 Location: NJ
|
|
|
|
I am not sure where to post this, so I am posting here...excuse me if I am posting this in wrong place...
I have a strange little problem...here is the situation...
I have 1 'online' batch job, that has 4 subtasks split out by product lines (linked non-rn/non-ru). This subtasks open their own DB2 thread using CAF. Each of this tasks calls MODULE#A (which is RN/RU)..
I am passing module#A everything it would need to call DB2 and retrieve data..
Now, if I push the requests through one at a time, everything is fine, I get my results back...BUT, if I push more requests through, more than one at a time, it does not seem to like it....the DB2 threads start terminating without any symptom..I get no messages inside my job regarding this..I can only see this through Omegamon, and see that the requests are no longer going through...
Any ideas?
But, as soon as I start |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
It may be that you've confused db2 with this "online batch job" and the subtasks. If all of the requests arrive at db2 as though they came from the same tso address space, this may be what causes db2 to "give up".
I'm aware of caf, but have not learned any details, so i don't know if there is a way to ensure the 4 subtasks are uniquely identified.
How does db2 "know" one subtask from another? |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
if I push more requests through, more than one at a time |
Can you describe how you do that?
I presume you use ATTACH. My own experience (not with CAF) was that each subtask needs a unique ECB and parm list. |
|
Back to top |
|
|
Nirav721
New User
Joined: 11 Feb 2008 Posts: 53 Location: NJ
|
|
|
|
Hi..thanks for the replies...
The way I thought it would work is since each thread is being called from a different subtask, it would assign a different TCB?
I am not too savy with CAF myself, so, I am not sure how to assign ECBs for DB2...for now, I am letting CAF do the implicit connect, and I am just issuing open calls..perhaps this is causing it to not behave properly? If you can show me how to do this inside cobol, it would be great...
And also, yes we use ATTACH for creating the subtasks.. |
|
Back to top |
|
|
Nirav721
New User
Joined: 11 Feb 2008 Posts: 53 Location: NJ
|
|
|
|
I inserted connect call for DSNALI whenever I open a thread from DB2, and now I am trying to check for the ECB, but it always fails for some odd reason?
Any ideas? |
|
Back to top |
|
|
|