Author |
Message
|
paulfraser |
Posted: Tue Feb 19, 2008 2:22 am Post subject: Logging Solution |
|
|
Newbie
Joined: 19 Feb 2008 Posts: 5
|
Hi, need some help in implementing a logging mechanism that will not be rolled back so basically is out of the commit scope. We hope to use MQ to do such a thing.
Thought to write a F/F message (the whole message), to a Log Queue at times during the commit scope but need to make sure that the message does not get rolled back.
Is there a way in MQ to tell MQ whatever happens to not roll back this particular message?
Thanks in advance.
P.s. Using CICS and Mainframe Batch. Would rather not write files; would prefer an MQ solution. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 19, 2008 2:35 am Post subject: Re: Logging Solution |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
paulfraser wrote: |
Is there a way in MQ to tell MQ whatever happens to not roll back this particular message?
|
Put that particular message to the "logging" queue outside syncpoint. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
paulfraser |
Posted: Tue Feb 19, 2008 2:57 am Post subject: |
|
|
Newbie
Joined: 19 Feb 2008 Posts: 5
|
Sorry I'm more of a "user" re MQ so how do you do that? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Feb 19, 2008 3:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
paulfraser wrote: |
Sorry I'm more of a "user" re MQ so how do you do that? |
Talk to your application programmer. He/She should know how to do this. If not refer them to the programming manual.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
paulfraser |
Posted: Tue Feb 19, 2008 3:49 am Post subject: |
|
|
Newbie
Joined: 19 Feb 2008 Posts: 5
|
Well you have come to the root of the problem. They generally provide little or no support hence I'm having to ask outside of my organisation. Any further information? |
|
Back to top |
|
 |
zpat |
Posted: Tue Feb 19, 2008 3:53 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
If you MQGET or MQPUT with the MQGMO/MQPMO option of SYNCPOINT, then the operation is part of the unit of work.
If you MQGET or MQPUT without the MQGMO/MQPMO option of SYNCPOINT, then the operation is not part of the unit of work. |
|
Back to top |
|
 |
paulfraser |
Posted: Tue Feb 19, 2008 3:58 am Post subject: |
|
|
Newbie
Joined: 19 Feb 2008 Posts: 5
|
Ok, that sounds like what I need to do - thank you. Also trawled the other forums and found this command:
MQGMO-MARK-SKIP-BACKOUT
Is this easier/safer/better or similar? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Feb 19, 2008 4:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
paulfraser wrote: |
Ok, that sounds like what I need to do - thank you. Also trawled the other forums and found this command:
MQGMO-MARK-SKIP-BACKOUT
Is this easier/safer/better or similar? |
Different purpose. Wouldn't go there. Stick with zpat's advice. _________________ MQ & Broker admin |
|
Back to top |
|
 |
paulfraser |
Posted: Tue Feb 19, 2008 4:05 am Post subject: |
|
|
Newbie
Joined: 19 Feb 2008 Posts: 5
|
Thx. Will now contact the MQ Support guys with this information and I'll see how far it gets me  |
|
Back to top |
|
 |
|