IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 - CAF - TSO SUBTASKS


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nirav721

New User


Joined: 11 Feb 2008
Posts: 53
Location: NJ

PostPosted: Thu Oct 02, 2008 12:24 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 02, 2008 12:48 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Oct 02, 2008 1:04 am
Reply with quote

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
View user's profile Send private message
Nirav721

New User


Joined: 11 Feb 2008
Posts: 53
Location: NJ

PostPosted: Thu Oct 02, 2008 1:11 am
Reply with quote

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
View user's profile Send private message
Nirav721

New User


Joined: 11 Feb 2008
Posts: 53
Location: NJ

PostPosted: Sat Oct 04, 2008 1:07 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Netview subtasks not started All Other Mainframe Topics 11
Search our Forums:

Back to Top