Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event trigger a transaction

Status
Not open for further replies.

rickyxiu

Programmer
Jun 8, 2005
2
CN
1. May I know how to setup and trigger, when one TDQ is refreshed, one transaction is automatically triggerred?
2. Where I can find the setup in CICS?
3. Assume I have a transaction to read TDQ, and it is automatically triggerred by same TDQ. As the TDQ is refreshed very frequently, the txn will be triggerred always? My question is if first txn is reading TDQ, will another txn be triggerred?
thanks
 
The trigger only fires when the TDQ hits the trigger value. It is the responsibility of the triggered transaction to read the queue down to QZERO.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
thanks stevexff.
Another question is, will another transaction triggerred before QZERO is met?
thanks in advance.
 
The transaction gets triggered when the queue reaches its trigger depth. So if our trigger level is 5, and there are 4 records on the queue, writing a new record will trigger the transaction. But if I write three records instead of one, it still only gets triggered once. So if your triggered transaction abends, you can get a build-up of records on the queue as it will only be triggered when the trigger level is crossed.

Which is why the triggered task should read the queue down to zero before it ends.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top