ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API SupportCan't rollback MQ on iSeries

Post new topicReply to topic
Can't rollback MQ on iSeries View previous topic :: View next topic
Author Message
mknesbeth
PostPosted: Fri May 12, 2006 2:03 am Post subject: Can't rollback MQ on iSeries Reply with quote

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. )


If mq-program failed
ROLLBACK
Else
COMMIT
End-If.

ENDCMTCTL


Can anyone help?

Thanks

Maurice
_________________
Regards

Maurice
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri May 12, 2006 2:30 am Post subject: Reply with quote

Jedi Knight

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
Back to top
View user's profile Send private message Send e-mail AIM Address
mknesbeth
PostPosted: Fri May 12, 2006 3:05 am Post subject: MQ Rollback on iSeries (Resolved) Reply with quote

Newbie

Joined: 08 Mar 2006
Posts: 3

Wayne

You truly are a grand master! Brilliant! The MQGMO-SYNCPOINT option worked.

Thanks very much indeed.

Maurice
_________________
Regards

Maurice
Back to top
View user's profile Send private message
mvic
PostPosted: Fri May 12, 2006 3:31 am Post subject: Re: MQ Rollback on iSeries (Resolved) Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

mknesbeth wrote:
Brilliant! The MQGMO-SYNCPOINT option worked.

I'm pleased you got it working. For further reference, check out the following page(s): http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzal.doc/synccon.htm
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportCan't rollback MQ on iSeries
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.