I have an application that writes a record to TDQ with a trigger level of 1. Once the trigger is reached another transaction is started that reads the queue and sends information to a printer. Periodically, the TDQ gets "jammed." Several records pile up in the queue and blank pages are being printed.My question is how can a TDQ with a trigger level of 1 ever have more than one record in it at one time? And, the fact that the printer is issuing blank pages lets me know that the transaction associated with TDQ is being started. Any clues?
It looks like you have sometimes got an arrival rate of stuff into the TDQ so that in the time it takes between the arrival of the first record and the transaction getting going, another record has arrived. I think you should recode your application that gets triggered to be able to cope with more than one record in the TDQ. I suggest you use some sort of special record that indicates end-of-file for the printing operation and if this is encountered and there is another record in the TDQ after it, stop printing and reschedule the same transaction again (or at least reloop back to the start of items processing). You should also attempt to stop two Triggered transactions from running at the same time for the same TDQ by using a transaction-lasting ENQ.
CICS Technical Strategist -- CICS expert at Search390.com
Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our .VO7aaqqaAFk.0@/search390>discussion forums.
Dig Deeper on IBM system z and mainframe systems
Related Q&A from Robert Crawford
For better mainframe capacity planning, how do I convert CPU hours to MIPS? And is there a way to calculate the relationship between MIPS and MSUs? Continue Reading
I have two years of experience in mainframe technology, currently working as a mainframe developer. I want to change to Java technology. Continue Reading
I want to replicate DB2 from the mainframe to an AIX box since it's cheaper and the copy can be used for testing. Is this possible? Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.