Author |
Message
|
queuetip |
Posted: Fri May 06, 2005 7:32 am Post subject: Possible For Apps To Retrieve Reason Code Verbiage? |
|
|
 Acolyte
Joined: 03 Feb 2005 Posts: 67
|
When a reason code is returned from an MQI call, I wish MQSeries had a way to also pass back the reason code description to the application program....OR....let the application program make a call to somewhere to retrieve the reason code's description.
Maybe there is a way to do this for C or COBOL that I don't know about?
Thank you!
Mike |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri May 06, 2005 8:05 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Mike,
please post in the apropriate forum, moving your message to API Support.
for reason codes and descriptions have a look at the mqrc program supplied with WebSphere MQ _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri May 06, 2005 8:08 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
queuetip |
Posted: Tue Aug 01, 2006 2:28 pm Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2005 Posts: 67
|
Peter,
I downloaded the utility and it works fine - but this is certainly just a throw in utility. Ideally, I would like a more enterprise solution to at least report the error title when I report the reason code so that an operator or cycle monitor can have an idea of what went wrong.
Thanks,
Mike |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Aug 01, 2006 5:23 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You could write a simple web service that would fork off a copy of mqrc (supplied with WebSphere MQ), and return the results.... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
queuetip |
Posted: Wed Aug 02, 2006 8:35 am Post subject: |
|
|
 Acolyte
Joined: 03 Feb 2005 Posts: 67
|
Web service is an excellent idea for midrange platforms... unfortunately for that solution our product also runs on the mainframe (and invoking web services from the mainframe is not part of our integration strategy).
Unless maybe there is a mainframe database / file equivilent for mqrc that is formally distributed with Websphere MQ?
Thanks,
Mike |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 02, 2006 9:45 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
mqrc is a program, not a file or database.
I don't know about Z/Os. You should be able to create a db2 stored procedure that will call your webservice, and then call that stored procedure. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tleichen |
Posted: Wed Aug 02, 2006 10:56 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
I know there are copybooks and/or header files in the appropriate languages (assembler, COBOL, PL/I, etc.) that are supplied with the product. It's been a while for me, but I once created the very thing you have mentioned, using an assembler routine. Worked great. We even used it to generate console messages with the error text in them.
Unfortunately, I don't have access to a mainframe in my current assignment, so I can't give you the specifics.  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
|