Author |
Message
|
vandemon |
Posted: Mon Jun 21, 2010 1:15 am Post subject: When n why do we need to call MQCMIT? |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Following is the flow of my code:
MQCONN
MQOPEN
MQPUT
MQCLOSE
MQDISC
My question:
1) Do i need to put in MQCMIT in my code?
2) When is the time that i need to put in MQCMIT?
3) Will my msg gone if i did not put in MQCMIT?
4) What is MQCMIT for??? |
|
Back to top |
|
 |
zpat |
Posted: Mon Jun 21, 2010 1:41 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
MQCMIT is used when you code MQPMO_SYNCPOINT.
If you don't need, don't code it. |
|
Back to top |
|
 |
vandemon |
Posted: Mon Jun 21, 2010 4:52 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
So, izit means that:
MQCONN (success)
MQOPEN (success)
MQPUT (in thus phase, i tried to put for a few times, then the application ended due the uncommon error)
My question : Will the data that I put using MQPUT lost? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 21, 2010 5:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vandemon wrote: |
My question : Will the data that I put using MQPUT lost? |
Probably. It depends on if you're using MQPMO_SYNCPOINT or not as my associate said & as you've not mentioned. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vandemon |
Posted: Mon Jun 21, 2010 5:10 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Ok thx... By default synpoint is not being used rite???[/quote] |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 21, 2010 5:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
vandemon wrote: |
Ok thx... By default synpoint is not being used rite??? |
How should I know? What are your site defaults?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
vandemon |
Posted: Mon Jun 21, 2010 5:19 am Post subject: |
|
|
Apprentice
Joined: 14 Jun 2010 Posts: 32
|
Ok... Checked already... Mine is with MQPMO_NONE... Thanks bro... |
|
Back to top |
|
 |
zpat |
Posted: Wed Jul 07, 2010 12:01 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There are two default options for syncpointing, it is no syncpoint on distributed platforms and syncpoint on z/OS, if nothing is specified.
There are some interesting options like Syncpoint if persistent, which can be specified. See the App Prog Reg, App Prog Guide (always a good read). |
|
Back to top |
|
 |
fatherjack |
Posted: Wed Jul 07, 2010 2:56 pm Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
zpat wrote: |
See the App Prog Reg, App Prog Guide (always a good read). |
How sad ...  _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jul 07, 2010 4:11 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
What's sad? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fatherjack |
Posted: Wed Jul 07, 2010 11:47 pm Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
bruce2359 wrote: |
What's sad? |
Suggesting the APR and APG are "always a good read". _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 08, 2010 5:00 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
I suppose that referring to a map before taking off for holiday is sad, too. Or that reading the schematic before adding electrics to my car is sad, as well.
I'll agree that the cast of characters and plot are somewhat thin... _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Jul 08, 2010 5:15 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Bruce meant they are a good read when you need the info contained within. Fatherjack read it as you saying they are a good read any ol' time, like on a beach during vacation. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jul 08, 2010 5:18 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
What?! You don't take tech manuals on vacation? I'm shocked... _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fatherjack |
Posted: Thu Jul 08, 2010 5:22 am Post subject: |
|
|
 Knight
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
|
bruce2359 wrote: |
What?! You don't take tech manuals on vacation? I'm shocked... |
Only my Red Hat Linux Bible
Amen. _________________ Never let the facts get in the way of a good theory. |
|
Back to top |
|
 |
|