We have a CICS transaction which is triggered by a message in MQ.
The CICS program reads all the messages in the queue until the queue becomes empty. The trigger type defined is 'F'.
But when there is an error encountered in the CICS program, it does a ROLLBACK and thus the message is put back into the Queue.
This message (which caused the error) triggers CICS program again and thus ending up in a loop until it is processed successfully.
Ideally this should not happen. CICS program should not get triggered until a new message comes in.
Please advise.