IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

MQSeries Correlation ID


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Sat Mar 02, 2013 2:10 am
Reply with quote

Hi All,

We are getting the data in MQSERIES queue from some other system. Mainframe COBOL program gets those messages, processes it and then puts back to the sender with message as "Successfully processed" along with Correlation ID. My concern is that I am not getting the valid Correlation ID value.

Steps that I did

- Gets the message from queue with syntax as
COMPUTE MQGMO-OPTIONS = (MQGMO-NO-SYNCPOINT +
MQGMO-ACCEPT-TRUNCATED-MSG +
MQGMO-CONVERT +
MQGMO-WAIT).

CALL WS-MQGET USING WS-HCONN
WS-HOBJ
MQMD
MQGMO
WS-CTCREC-DATALENGTH
MQ-INPUT
WS-RETURN-QMSG-DATALENGTH
WS-COMPLETION-CODE
WS-REASON-CODE.

- Processes the message and put back the message as Successful to the sender

COMPUTE MQPMO-OPTIONS =
(MQPMO-NO-SYNCPOINT
+ MQPMO-NEW-MSG-ID
+ MQPMO-NEW-CORREL-ID
+ MQPMO-DEFAULT-CONTEXT)

CALL 'MQPUT1' USING WS-HCONN
MQOD
MQMD
MQPMO
WS-REPLY-MSG-DATALENGTH
WS-FORMATTED-MQREPLY-MSG
WS-COMPLETION-CODE
WS-REASON-CODE.

While checking the MQPMO-NEW-CORREL-ID value, it is given as standard value 128. I am not sure why Correlation ID is not getting changed ?

Please help me.

Thanks
Vinu
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Mar 11, 2013 6:39 pm
Reply with quote

Following standard MQ reply processing, you should move the inbound MSG-ID to the reply message's MQMD.CorrelId. The requesting program would then issue its MQGET specifying the request MSG-ID as the reply's CORRELID. What advantage would you have in generating a new unique CORRELID on the reply?

Garry
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts How to get the plan name/correlation ... DB2 1
No new posts Comparing MQ MSG ID and correlation ID Java & MQSeries 1
No new posts Column Correlation names in UNION DB2 7
No new posts Passing Queue name in to MQSeries Pro... Java & MQSeries 3
No new posts MQSeries GTA Messaging Architecture Java & MQSeries 5
Search our Forums:

Back to Top