Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DB2 - CAF - TSO SUBTASKS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: DB2 - CAF - TSO SUBTASKS
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

Site Director


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

PostPosted: Thu Oct 02, 2008 12:48 am    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 02, 2008 1:04 am    Post subject: Reply to: DB2 - CAF - TSO SUBTASKS
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    Post subject: Reply to: DB2 - CAF - TSO SUBTASKS
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    Post subject: Reply to: DB2 - CAF - TSO SUBTASKS
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Netview subtasks not started Madhaviy All Other Mainframe Topics 11 Mon Jul 26, 2010 4:03 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us