Author |
Message
|
PeterPotkay |
Posted: Sat Jul 11, 2009 6:21 am Post subject: Deciphering the MQOPEN options |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sat Jul 11, 2009 2:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
exerk |
Posted: Sun Jul 12, 2009 2:47 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Sun Jul 12, 2009 4:52 am Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Sun Jul 12, 2009 6:45 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Sun Jul 12, 2009 7:04 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Sun Jul 12, 2009 11:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
markt |
Posted: Thu Sep 03, 2009 1:17 am Post subject: |
|
|
 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 |
|
 |
|