Hi
We have an MQ application which uses the same Q of some other App.I read like when we use same Q ,
Correlation id will have the the message ID for the request message .When we get the reply message the this correlation id will be moved to the corr ID of reply message,So that we can get the reply specific to our request.
Can you pls let me know on how to work on this,am new to MQ.
We already have an app which uses a Q.
Now i need to have another app to use the same Q and have to change the initial one such that it also uses same Q.
Can u pls guide me on this change on how to use same Q for 2 app.and What would be the changes to the existing app.
How we can use this CORRID ?
Thank You
How to use option CORRELID
-
- Posts: 341
- Joined: Thu Feb 24, 2011 12:05 am
- Skillset: 30 years on IBM mainframes
- Referer: Searched for Frank Yeager
Re: How to use option CORRELID
-program builds the message, including the proper headers
-program opens the queue
-program writes a message to the queue
-header field for the corrid gets updated to contain the corrid that MQ creates on the fly
-program can then specify that same corrid when reading a queue to get a specific message back
How that corrid gets saved and passed around by the programs is up to you.
If the existing app is not using corrid at all, then it will need to learn how to save them up when it writes them and pass them to the app that needs to read the specific records from the sending program.
-program opens the queue
-program writes a message to the queue
-header field for the corrid gets updated to contain the corrid that MQ creates on the fly
-program can then specify that same corrid when reading a queue to get a specific message back
How that corrid gets saved and passed around by the programs is up to you.
If the existing app is not using corrid at all, then it will need to learn how to save them up when it writes them and pass them to the app that needs to read the specific records from the sending program.
Re: How to use option CORRELID
Hi Ed
Thank you for your reply
"header field for the corrid gets updated to contain the corrid that MQ creates on the fly"
I dnt get this ..
n is this id gets generated or do we need to create a uniq id every time?
Thank you for your reply
"header field for the corrid gets updated to contain the corrid that MQ creates on the fly"
I dnt get this ..
n is this id gets generated or do we need to create a uniq id every time?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: How to use option CORRELID
Hello,
Please do use complete words and sentences. . .
Thank you,
d
Please do not use Tweet (or kiddie room chat) formats when posting.n is this id gets generated or do we need to create a uniq id every time?
Please do use complete words and sentences. . .
Thank you,
d
-
- Posts: 341
- Joined: Thu Feb 24, 2011 12:05 am
- Skillset: 30 years on IBM mainframes
- Referer: Searched for Frank Yeager
Re: How to use option CORRELID
In a COBOL program, when you make the "MQPUT" call, there are several areas you include in the call. One of those parm areas contains that corrid field. If the call is successful, that field get changed to a valid id.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 5864
-
by Misha786
View the latest post
Fri Sep 09, 2022 8:33 pm
-
-
Compiler option INVDATA is not working on COBOL6.3
by Misha786 » Fri Apr 22, 2022 5:35 pm » in IBM Cobol - 4
- 3362
-
by Misha786
View the latest post
Mon Apr 25, 2022 4:35 pm
-