Michael,
I was going to suggest the same. But I think the OP just wants to correlate messages and is only hitting a problem because of how the MsgID and CorrelID are being used/misused.
My own take on it is if you just need to correlate messages, then copying the QMgr generated messageID to CorrelID and getting on CorrelID works as designed regardless of platform. The old fashioned way of you like. Added to that you can index a queue on CorrelID (at least on z - I'm not convinced of the performance of "dynamic" indexing on distributed for a deep queue).
If however you want to "process" the correlation identifier in any manner, or somehow have a need for it to be user readable, then yes user message properties were designed for exactly that reason. Examples may be using an account ref, a sequence number or some text based tag etc. I've seen some ugly implementations of CorrelID when set by applications across z and distributed when message properties would have worked much better.
Cheers,
Ian
Ian Alderson
MQ Technical Architect
DL 0203 003 3055
--------------------------------------------------------------------
Ignis Asset Management
Fixed Income | Equities |Real Estate |Advisors |Solutions
150 Cheapside | London | EC2V 6ET
http://www.ignisasset.com
http://twitter.com/IgnisAM
http://www.linkedin.com/companies/ignis-asset-management
-----Original Message-----
From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Michael Dag
Sent: Wednesday, March 19, 2014 10:50 AM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Using your own message-id on a get with correlation-id continued
Why not use Message Properties for this!?
They were created so you could attach your own whatever to a message and use it for whatever purpose and not pollute/misuse MQMD fields or pollute/attach data to your message data itself...
Michael
www.mqsystems.com
-----Original Message-----
From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of Ward, Mike S
Sent: dinsdag 18 maart 2014 21:43
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Re: Using your own message-id on a get with correlation-id continued
You missed Rogers point. His is the correct way to do it.
-----Original Message-----
From: MQSeries List [mailto:***@LISTSERV.MEDUNIWIEN.AC.AT] On Behalf Of John J. Leonard
Sent: Tuesday, March 18, 2014 12:39 PM
To: ***@LISTSERV.MEDUNIWIEN.AC.AT
Subject: Using your own message-id on a get with correlation-id continued
My thanks to all who replied. I now understand that our work around is the only way to make this work. I was puzzled when I was informed The MQMD- MSGID and MQMD-CORRELID and both defined as MQBYTE24 cause when I look at the COBOL copybooks both fields are just PIC X 24. Never the less when I read MQBYTE data type is treated as a string of bits, and not as a binary number or character than my understanding increased and I realized our work around is what needs to be done.
For Roger L. Obviously I did not express the issue very well; for that I apologize.
I generate a message-id in character and use it to put message1 on the queue. That message-id is than placed in the body of a second message which is then put on queue. That second message contains other data elements in the body in addition to the message-id. The distributed application reads the second message then uses the message-id in the body to read the first message.
If I use the MQ generated message id instead of my character message-id when the second message is read and converted the MQ generated message- id within the body would be junk. That is why we have a character message id instead of the MQ generated message-id.
Our work around is for the distributed application to take the '1234' and make it x'F1F2F3F4' and use that to read the first message doing a get by
message- id.
Again my thanks to all of you.
To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and, in the message body (not the subject), write: SIGNOFF MQSERIES Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
==========================
This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to which it is addressed. If you have received this email in error, please notify the system manager.
This message contains confidential information and is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this message by mistake and delete this e-mail from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and, in the message body (not the subject), write: SIGNOFF MQSERIES Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
To unsubscribe, write to ***@LISTSERV.MEDUNIWIEN.AC.AT and, in the message body (not the subject), write: SIGNOFF MQSERIES Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
**************************************************************
The information contained in this email (including any attachments transmitted within it) is confidential and is intended solely for the use of the named person.
The unauthorised access, copying or re-use of the information in it by any other person is strictly forbidden.
If you are not the intended recipient please notify us immediately by return email to ***@ignisasset.com.
Internet communication is not guaranteed to be timely, secure, error or virus free. We accept no liability for any harm to systems or data, nor for personal emails. Emails may be recalled, deleted and monitored.
Ignis Asset Management is the trading name of the Ignis Asset Management Limited group of companies which includes the following subsidiaries: Ignis Asset Management Limited (Registered in Scotland No. SC200801), Ignis Investment Services Limited* (Registered in Scotland No. SC101825)
Ignis Fund Managers Limited* (Registered in Scotland No. SC85610) Scottish Mutual Investment Managers Limited* (Registered in Scotland No. SC88674)
Registered Office: 50 Bothwell Street, Glasgow, G2 6HR, Tel: 0141-222-8000 and Scottish Mutual PEP & ISA Managers Limited* (Registered in England No. 971504)
Registered Office: 1 Wythall Green Way, Wythall, Birmingham B47 6WG and Ignis Investment Management Limited (Registered in England No. 5809046)
Registered Office: 150 Cheapside, London, EC2V 6ET Tel: 020 3003 3000. Scottish Mutual is a registered trade mark of Scottish Mutual Assurance Limited
*Authorised and regulated by the Financial Conduct Authority.
***************************