Author |
Message
|
LearnMQSI |
Posted: Mon May 01, 2006 11:04 am Post subject: Shell Script to display Reason Code Details |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi There,
I'm trying to write a shell script to display Reason Code Details from a User Defined File.
I know, I can use mqrc Reason_Code but it won't give you the Complete Details, so I have diceded to write one. Is there any such scripts exists today? if so, please let me know. Right now, I'm in the process of looking how can I set my WHILE loop to get the details.
I have dump all the details associated with all Reason Codes in a file, say MQAPIREASONCODE. Now my script will grep the Reason Code and its Details untill it finds another Reason Code (in other words, First Field which starts with an integer from 0 thru 9 [0 - 9].
My MQAPIREASONCODE file looks like this.
2001 MQRC_ALIAS_BASE_Q_TYPE_ERROR
An MQOPEN or MQPUT1 call was issued specifying an alias queue as the destination, but the BaseQName in the alias queue definition resolves to a queue that is not a local queue, a local definition of a remote queue, or a cluster queue.
Corrective action: Correct the queue definitions.
2002 MQRC_ALREADY_CONNECTED
An MQCONN or MQCONNX call was issued, but the application is already connected to the queue manager.
On OS/390, this reason code occurs for batch and IMS applications only; it does not occur for CICS applications.
On Windows NT, MTS objects do not receive this reason code, as additional connections to the queue manager are allowed.
Corrective action: None. The Hconn parameter returned has the same value as was returned for the previous MQCONN or MQCONNX call.
An MQCONN or MQCONNX call that returns this reason code does not mean that an additional MQDISC call must be issued in order to disconnect from the queue manager. If this reason code is returned because the application has been called ina situation where the connect has already been done, a corresponding MQDISC should not be issued, because this will cause the application that issued the original MQCONN or MQCONNX call to be disconnected as well. _________________ IBM Certified System Administrator - WebSphere MQ 5.3 |
|
Back to top |
|
 |
shalabh1976 |
Posted: Mon May 01, 2006 7:30 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
Shouldn't this post go to another forum, one which deals with MQ problems ? _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 01, 2006 8:46 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'm not even sure if this is a "problem", or more of an attempt at a "product annoucement". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue May 02, 2006 4:39 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Moved to Geneal MQ forum.
LearnMQSI, I think there already is a Support Pack that does this. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
LearnMQSI |
Posted: Thu May 04, 2006 12:38 pm Post subject: |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi PeterPotkay,
Would you please let me know which supportpac is this?
Thanks a lot for pointing me this. _________________ IBM Certified System Administrator - WebSphere MQ 5.3 |
|
Back to top |
|
 |
mvic |
Posted: Thu May 04, 2006 1:05 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
|
Back to top |
|
 |
sirsi |
Posted: Thu May 04, 2006 2:14 pm Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
MA0K is for WMQ v5.3 ... its doesnt include V6 error codes... |
|
Back to top |
|
 |
JT |
Posted: Thu May 04, 2006 7:00 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Perhaps the IBM Software group has plans to add v6 support to MA0K. There's really only one way to find out........ask. |
|
Back to top |
|
 |
|