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 Index » IBM MQ API Support » MQBYTE24

Post new topic  Reply to topic
 MQBYTE24 « View previous topic :: View next topic » 
Author Message
waugh
PostPosted: Mon Mar 01, 2004 5:53 am    Post subject: MQBYTE24 Reply with quote

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
View user's profile Send private message
crossland
PostPosted: Mon Mar 01, 2004 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
kman
PostPosted: Mon Mar 08, 2004 12:48 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
bower5932
PostPosted: Mon Mar 08, 2004 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQBYTE24
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.