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 » Deciphering the MQOPEN options

Post new topic  Reply to topic
 Deciphering the MQOPEN options « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Sat Jul 11, 2009 6:21 am    Post subject: Deciphering the MQOPEN options Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

I'm looking at an Authority Event message. It says the app is failing on the MQOPEN call, and it gives me the numeric representation of the options used on the MQOPEN call. Does anyone have a tool, Support Pack, undocumented command to take that number and spit out the list of options used that produced it?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jul 11, 2009 2:39 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Peter,

I'd have thought you'd write your own little routine, checking against each of the options at a bit level... ( & ) so that when the outcome equals the check you know the option has been set...

Really not so complicated and something to keep in your toolkit...

For those struggling with the concept I have added a few links here:
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op3.html
http://www.vipan.com/htdocs/bitwisehelp.html
http://en.wikipedia.org/wiki/Bitwise_operation

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Sun Jul 12, 2009 2:47 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

fjb_saper wrote:
...I'd have thought you'd write your own little routine, checking against each of the options at a bit level... ( & ) so that when the outcome equals the check you know the option has been set...

Really not so complicated and something to keep in your toolkit...


Not so complicated for those who can write code, unlike numpties like me..
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 12, 2009 4:52 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

If you put the decimal number into Windows Calculator after enabling Scientific View you can the switch the display to show the HEX equivalent.

Then the mask values can be obtained from the MQOO section of cmqc.c

It takes a little time but is certainly shorter than trying to write an app to decode the values.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sun Jul 12, 2009 6:45 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

smdavies99 wrote:
Then the mask values can be obtained from the MQOO section of cmqc.c

Can you elaborate?

smdavies99 wrote:
It takes a little time but is certainly shorter than trying to write an app to decode the values.

For one time I'm sure. For something you will use over and over its probably worthwhile to code that little app.

I'm sure I could eventually figure it out and code it myself. But why reinvent the wheel if its already out there? I did do this years ago in COBOL to check what Report Options were set on the incoming request message. I'll dig that up and see if I can translate it into a little VB.net app.
But I'm a numptie like exerk. I no longer write code day to day and would waste time with silly syntax errors and compile problems, so if something already exists I'd prefer to use that.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Jul 12, 2009 7:04 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

You likely know all this; but for those that don't: WMQ Constants manual, MQOO section, lays out the binary bit values for each open option. Each option has a numeric weight.
_________________
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
View user's profile Send private message
mqjeff
PostPosted: Sun Jul 12, 2009 11:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MO01, maybe?

http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24000676&loc=en_US&cs=utf-8&lang=en
Back to top
View user's profile Send private message
markt
PostPosted: Thu Sep 03, 2009 1:17 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

MQIDecode in the latest MS0P

Code:

C:\> mqidecode -p mqoo -v 0x00002020 -m
MQOO_INQUIRE (0x00000020)
MQOO_FAIL_IF_QUIESCING (0x00002000)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Deciphering the MQOPEN options
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.