MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MQ Connection Issue

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Thu Feb 22, 2007 3:51 am    Post subject: MQ Connection Issue Reply with quote

Hi,

I have a question for you all. We have an MQ which will be sending some message into our MQ and our CICS transaction gets triggered.

But sometimes we loose the MQ connection and couldn't able to proceed further. Then we are initiating the CICS transaction again to get the connection back.

My question is - what would be the error message when there is a loss in MQ connection. Here our application has so many error message and I couldn't able to find the exact one. Is there a standard error message for connection issue?, if so what?

Thanks,
Shankar.
Back to top
View user's profile Send private message
bob_buxton
Beginner


Joined: 20 Dec 2002
Posts: 44
Topics: 0
Location: Hampshire, England

PostPosted: Thu Feb 22, 2007 9:15 am    Post subject: Reply with quote

CICS automatically reconnects to MQ following a connection failure and starts the trigger monitor so your transactions should be automatically restarted.

Applications using MQ would receive a reason code when connection is broken, one of:
MQRC_CONNECTION_BROKEN
MQRC_CONNECTION_QUIESCING
MQRC_CONNECTION_STOPPING
MQRC_Q_MGR_STOPPING
MQRC_Q_MGR_QUIESCING
_________________
Bob Buxton
Ex Websphere MQ for zOS development
Back to top
View user's profile Send private message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Thu Feb 22, 2007 8:36 pm    Post subject: Reply with quote

Very thanks for the information.

But truly speeking, CICS is not reconnected to MQ automatically. I got the concept of CKTI and it is been implemented in our system. As per your statement, it seems CICS should reconnect. Could you please explain me how this is achived, so that I can have a check.

Also, I have another question. I have a transaction say AA, which will be triggered automatically every 15 minutes. Recently we got a abend in CICS with AEIP during CICS shutdown. We are assuming that the transaction started during the Shutdown process and hence got abended. Is it really possible?. Is there any other way by which we can predict the CICS shutdown and stop the transaction AA from Getting triggered.

Many Thanks,
Shankar
Back to top
View user's profile Send private message
bob_buxton
Beginner


Joined: 20 Dec 2002
Posts: 44
Topics: 0
Location: Hampshire, England

PostPosted: Fri Feb 23, 2007 5:35 am    Post subject: Reply with quote

If CICS is not not reconnecting to MQ when MQ restarts you should raise a problem with the IBM support centre. At the least they will want to see the joblogs of the CICS and MQ address spaces. There should be a long running transaction, CKAM, in your CICS region, it is CKAM's job to monitor the connection and to restart it when needed.

AEIP results from an unhandled INVREQ condition, without the EIBFN, EIBRESP, EIBRESP2 values it is not possible to say exactly what caused it but a transaction running during CICS shutdown may well experience such abends.
It is good programming practice to specify MQxxx-FAIL-IF-QUIESCING option on MQ API calls and to terminate your transcation if you receive one of the QUIESCING/STOPED/BROKEN reason codes.
_________________
Bob Buxton
Ex Websphere MQ for zOS development
Back to top
View user's profile Send private message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Sun Feb 25, 2007 9:19 pm    Post subject: Reply with quote

Hi Bob,

Thanks for your valuable information.

I want to explain the whole scenario and my questions.

CICS CKTI should automatically trigger CICS transaction AA10 when there is a message in MQ. Since we are loosing the connection between MQ and CICS, we are not able to process the data. Hence we defined that a transaction AA20 will trigger another transaction AA10 immediately to read the data from MQ and will inform the CICS to retrigger the same AA20 after 15 minutes. (In case AA10 is not triggered automatically).

Now we want to remove the AA20 and have some logic in AA10 itself to be retriggered automatically even when the CICS-MQ connection lost. What we have done now is, we changed the program such that when AA10 fails due to connection lost, it will be triggered after 2 minutes by introducing START TRAN with Interval. Is this the proper way of handling this situation or is there any build in option available in CICS?

Thanks in advance,
Shankar.
Back to top
View user's profile Send private message
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Mon Feb 26, 2007 1:16 am    Post subject: Reply with quote

One more question,

Assume there are 20 records in MQ which is not processed and the MQ conection is lost. What will happen to those records. Will it be there or we will loose those records?

Thanks in advance,
Shankar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group