|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQBYTE24 |
« View previous topic :: View next topic » |
Author |
Message
|
waugh |
Posted: Mon Mar 01, 2004 5:53 am Post subject: MQBYTE24 |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
when i do MQGET i am looking for a particuler string as CorrelId of the message. do i need to do any type conversion, coz CorrelId is a MQBYTE24 type, if yes, what function that we use to convert a string to a MQBYTE24 type?
Thanks in advance |
|
Back to top |
|
 |
crossland |
Posted: Mon Mar 01, 2004 7:02 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
If you look at cmqc.h, you will see the following:
typedef unsigned char MQBYTE;
typedef MQBYTE MQPOINTER PMQBYTE;
typedef PMQBYTE MQPOINTER PPMQBYTE;
typedef MQBYTE MQBYTE8[8];
typedef MQBYTE8 MQPOINTER PMQBYTE8;
typedef MQBYTE MQBYTE16[16];
typedef MQBYTE16 MQPOINTER PMQBYTE16;
typedef MQBYTE MQBYTE24[24];
typedef MQBYTE24 MQPOINTER PMQBYTE24;
Regards,
Tim Crossland
http://www.solent-consultancy.com |
|
Back to top |
|
 |
kman |
Posted: Mon Mar 08, 2004 12:48 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
I am not sure why you want to convert string to MQBYTE24. Please fill me in on that.
My advice is you stick with MQBYTE24 if you want to let MQ decide or generate the msgid and correlid. Changing that to string, would only put you into trouble - if you are unlucky. Check out a topic on this problem with msgid and correlid after an upgrade.
http://www.mqseries.net/phpBB2/viewtopic.php?t=13869 |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 08, 2004 6:44 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
I'll also add that you can get into trouble with treating the message and correlation id's as strings if you are moving around platforms. These fields are not converted and will give you trouble if you try string compares between ascii and ebcdic. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|