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 » General IBM MQ Support » How control MQSeries options coded whithin a program

Post new topic  Reply to topic
 How control MQSeries options coded whithin a program « View previous topic :: View next topic » 
Author Message
JOE
PostPosted: Wed Jul 17, 2002 5:24 am    Post subject: How control MQSeries options coded whithin a program Reply with quote

Newbie

Joined: 11 Jun 2002
Posts: 5
Location: PARIS (FRANCE)

Building up an MQSeries API in C:

- the API receive information from the application and specially the Put options for example coded in a special field
- some of these options are not allowed for the application

question: among all the options coded (values are added) in that field how can the API identify the values not allowed? - remind us that the fields in which the options are coded is MQLONG type ???

thanks for help.
Back to top
View user's profile Send private message Send e-mail
nimconsult
PostPosted: Wed Jul 17, 2002 10:34 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

The different put options correspond to specific positions of bits in the MQLONG. Adding them is equivalent to a logical "OR" operation on the bits positions. Look in the MQ Series header files, you will see that the MQPMO_* values are powers of 2.

In the API implementation, you can easily test which option has been selected. Example:
if (mqpmo & MQPMO_SYNCPOINT)
{
// the MQPMO_SYNCPOINT option has been selected
}


Est-ce que cela répond à votre question?
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How control MQSeries options coded whithin a program
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.