Posted: Fri May 12, 2006 2:03 am Post subject: Can't rollback MQ on iSeries
Newbie
Joined: 08 Mar 2006 Posts: 3
Hello MQ World
I'm going blind from looking at MQ manuals and I can't get anywhere.
I cannot get MQ to roll back. I have a program which successfully reads a message from the queue, performs some processing which fails and requires a rollback, but the message is not replaced on the queue. The non-MQ updates are successfully rolled back. The MQ program (type CBLLE) is called from a CL as follows:
CL
STRCMTCTL
CALL mq-program (in bold to distinguish it from the CL)
( Mq-program
CALL “MQCONN”
CALL “MQOPEN”
…
…
CALL "MQGET"
(successful)
…
…
If failure
Do not do MQCLOSE or MQDISC
Else
CALL “MQCLOSE”
CALL “MQDISC”
End-If. )
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
Did you try the get with MQGMO_SYNCPOINT? The default on iSeries is NO_SYNC. ANd I'm not 100% sure if its different on iSeries, but on other platforms MQDISC implies MQCMIT, _________________ -wayne
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum