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 » Shell Script to display Reason Code Details

Post new topic  Reply to topic
 Shell Script to display Reason Code Details « View previous topic :: View next topic » 
Author Message
LearnMQSI
PostPosted: Mon May 01, 2006 11:04 am    Post subject: Shell Script to display Reason Code Details Reply with quote

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
View user's profile Send private message
shalabh1976
PostPosted: Mon May 01, 2006 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Mon May 01, 2006 8:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Tue May 02, 2006 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
LearnMQSI
PostPosted: Thu May 04, 2006 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Thu May 04, 2006 1:05 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

LearnMQSI wrote:
Would you please let me know which supportpac is this?

This might help: http://www.google.com/search?q=mq+reason+code+supportpac
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu May 04, 2006 2:14 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

MA0K is for WMQ v5.3 ... its doesnt include V6 error codes...
Back to top
View user's profile Send private message
JT
PostPosted: Thu May 04, 2006 7:00 pm    Post subject: Reply with quote

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
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 » Shell Script to display Reason Code Details
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.