Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MQSeries Correlation ID

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 129
Location: India

PostPosted: Sat Mar 02, 2013 2:10 am    Post subject: MQSeries Correlation ID
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

Active Member


Joined: 08 May 2006
Posts: 991
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon Mar 11, 2013 6:39 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to get the plan name/correlation ... ravindra.vadali DB2 1 Thu Jul 16, 2015 1:22 am
No new posts Comparing MQ MSG ID and correlation ID SushilZade Java & MQSeries 1 Fri May 23, 2014 5:36 pm
No new posts Column Correlation names in UNION GuyC DB2 7 Mon Sep 06, 2010 8:31 pm
No new posts Passing Queue name in to MQSeries Pro... Elixir Java & MQSeries 3 Fri Jul 09, 2010 8:17 pm
No new posts MQSeries GTA Messaging Architecture atulbagewadikar Java & MQSeries 5 Wed Mar 24, 2010 6:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us