Page 1 of 1

Regarding Reason code = 2042

PostPosted: Fri Apr 13, 2012 6:57 pm
by rekhamf
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 ?

Re: Regarding Reason code = 2042

PostPosted: Sat Apr 14, 2012 12:11 am
by dick scherrer
Hello,

Suggest you find a way to ensure these jobs only run single thread (one at a time).