Regarding Reason code = 2042



Support for MQSeries and Websphere Message Oriented Middleware communication systems for z/OS

Regarding Reason code = 2042

Postby rekhamf » Fri Apr 13, 2012 6:57 pm

Hi ,

When I try to run 2 batch jobs at same time which is pointing to same, the second job failed to execute with 2042 ( says object in use)in MQOPEN ..Do i need to specify any other definition here ?

I gave :
COMPUTE W-INPUT-OPENOPTIONS = MQOO-INPUT-SHARED     +   
                              MQOO-SAVE-ALL-CONTEXT +   
                              MQOO-FAIL-IF-QUIESCING     
                                                         
                                                         
CALL 'MQOPEN'           USING W-MQ-HCONN                 
                              MQOD                       
                              W-INPUT-OPENOPTIONS       
                              W-MQ-HOBJ-IN               
                              W-MQ-COMPCODE             
                              W-MQ-REASON               


I was try to execute in developement region .I too have doubt whether developement region will not allow the mq object to use at same time .Is that possible ?
rekhamf
 
Posts: 33
Joined: Mon Nov 28, 2011 5:09 am
Has thanked: 0 time
Been thanked: 0 time

Re: Regarding Reason code = 2042

Postby dick scherrer » Sat Apr 14, 2012 12:11 am

Hello,

Suggest you find a way to ensure these jobs only run single thread (one at a time).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to WebSphere MQ

 


  • Related topics
    Replies
    Views
    Last post