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 

Trigger CICS program

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


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Fri Apr 23, 2010 4:00 pm    Post subject: Trigger CICS program Reply with quote

Hi,
I am very new to MQ series. Please help me.

My requirement is to trigger a program when there is a message in Queue. The triggered program will read the message from Queue and send message to another program for validation.

But in trigeered program, I am not getting any response after calling
MQGET. I dont know why??
My statements are

Code:

compute ws-mq-options = mqoo-input-shared +     
                        mqoo-save-all-context +
                        mqoo-fail-if-quiescing.
call ws-mqopen using  ws-mq-hconn 
                     mqod         
                     ws-mq-options
                     ws-mq-hobj   
                     ws-mq-compcode
                     ws-mq-reason.

Code:

compute mqgmo-options = mqgmo-no-syncpoint
call ws-mqget  using  ws-mq-hconn   
                      ws-mq-hobj     
                      mqmd           
                      mqgmo         
                      ws-mq-bufflen 
                      ws-mq-message 
                      ws-mq-compcode
                      ws-mq-reason. 



I captured mqget dump.
Code:

CALL MQGET(                                                                   
                Hconn =    '00000000'  MQ Connection handle                   
                 Hobj =    '00000001'  MQ Object handle                       
              MsgDesc =    . 19608AE0  MQ Formatted Message Descriptor (MQMD) 
           GetMsgOpts =    . 19608C28  MQ Formatted Get Message Options (MQGMO)
         BufferLength =    '00000566'  MQ Message buffer length in hex         
       Buffer Address =    + 196083E0  MQ Message buffer address               
           DataLength =    '00000064'  MQ Message data length in hex           
             CompCode =    '0'         MQ Completion Code in decimal           
                      =   MQCC_OK                                             
               Reason =    '0'         MQ Reason Code in decimal               
                      =   MQRC_NONE                                           
           )                                                                   


It is saying ASRA abend with program CSQCTRUE
I am not what is wrong with this program. Thanks for your help as always.
SK2007
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Apr 23, 2010 5:20 pm    Post subject: Reply with quote

SK2007,

ASRA abend is too generic. It can be caused for n number of reasons. Take a look at this topic

http://www.mvsforums.com/helpboards/viewtopic.php?t=1812

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SK2007
Beginner


Joined: 25 Jan 2007
Posts: 40
Topics: 17

PostPosted: Sat Apr 24, 2010 9:45 pm    Post subject: Reply with quote

Thanks Kolusu.
I looked at the pdf given in the link. But I felt it is difficult to solve my situation. This ASRA caused SOC4.
I got connection handle as zeros after MQOPEN. Is it correct??zeors is the valid value for connection handle??

Thanks
SK2007.
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