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

TDQ & its usage as ATI


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

New User


Joined: 20 May 2010
Posts: 75
Location: India

PostPosted: Sat Oct 17, 2015 6:04 pm
Reply with quote

Hello ,

My query is as below

if i define a TDQ with trigger level as 1 .And my TDQ trigger PROGA when it message in queue as 1.

msg = 1 , TDQ triggers PROGA and PROGA process the msg in the TDQ

1. If during the execution of PROGA will another msg can be written in that TDQ and if so will it trigger another copy of PROGA ?

Basically my query is how will i can handle this TDQ ATI with high volume of transactions. An ENQ within PROGA will be right approach?

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Oct 17, 2015 9:30 pm
Reply with quote

the normal approach is to have PROGA keep reading the queue until empty
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Mon Oct 19, 2015 8:28 pm
Reply with quote

Quote:
. If during the execution of PROGA will another msg can be written in that TDQ and if so will it trigger another copy of PROGA ?

Multithreading and Multitasking concept but very unlikey to happen unless the called program is really slow.
Quote:
Basically my query is how will i can handle this TDQ ATI with high volume of transactions. An ENQ within PROGA will be right approach?

That all depends on your requirements, if they want TRGLVL=1 then that is how it should be else you can increase the trglvl.

Take a look at START as well as for each record you are calling the new task so why TDQ unless you have any batch using that.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Oct 20, 2015 10:08 pm
Reply with quote

What Rohit has said is true. There will only be one transaction running and if that transaction fails, then the TDQ keeps filling up, unless your application program issues a START of this failed transaction so it can issue a READQ TD API.

I think you're better off with individual START TRANSID API's.

HTH....
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts Usage of BINSEARCH PL/I PL/I & Assembler 1
Search our Forums:

Back to Top