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
 

 

How can we get the number of running threads of a transactio

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
junu_j

New User


Joined: 25 Aug 2003
Posts: 2

PostPosted: Fri Apr 27, 2007 10:27 am    Post subject: How can we get the number of running threads of a transactio
Reply with quote

How can we get the number of running threads of a transaction through a COBOL program???
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Apr 27, 2007 11:32 am    Post subject:
Reply with quote

I know what I mean when I use the word "thread", but I do not know what you mean when you use the word "thread".
Please expand on your request.

And do not double post.
Back to top
View user's profile Send private message
junu_j

New User


Joined: 25 Aug 2003
Posts: 2

PostPosted: Fri Apr 27, 2007 11:58 am    Post subject:
Reply with quote

ok. I have a Transaction ABCD and i wanted to know the number of instances of that transaction being running in the cics region through a cobol program.
I wanted this number to initiate another transaction.If the number of instances of ABCD running at a time is more i wont initiate the second transaction.
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 149
Location: Ottawa Canada

PostPosted: Sat Apr 28, 2007 1:17 am    Post subject:
Reply with quote

I haven't done this myself so what follows is a best guess:

You would need to use the INQUIRE TASK command. This is an SPI command so you may or may not have access to it. Where I work, we are forbidden from using SPI commands - even though they (CICS Systems programmers) have not restricted our access to it yet.

I believe you can use the INQUIRE command to get a list of tasks that are currently executing and then you can use the INQUIRE command to iterate through each task in this list. The INQUIRE command will return the tran id to you - so you can iterate through the list and count the number of tasks executing your tran id.

Your next step would be to consult the manual to see how to use INQUIRE TASK to do this.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Sat Apr 28, 2007 2:10 am    Post subject:
Reply with quote

Unless your transaction is conversational, it will be hard to tell since during terminal wait for a non-conversational task, nothing shows....
In that case you might have to scan the aquired terminals looking for next tranid.....
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts how to mask the phone number kumarinfy DB2 4 Mon Apr 03, 2017 5:23 pm
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am


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