The default on OS390 is 3 which is the combination of 1 (match msg id) and 2
(match correlid), so adding 2 more gives 5 which is 4 (match group id) and 1
(match msg id), I think.  Anyway, you're original code of moving MQMO-NONE
(0) and then adding MQMO-MATCH-CORREL-ID (2) should have given you the
desired value of 2.  Are you sure the messages are committed to the queue?
Are you sure the value '12345' you are moving into the field (right filled
with spaces) has the same byte value as the actual correlid of the message?



-----Original Message-----
From: Shah, Urvesh (CAP, GEFA Contractor)
[mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 2:28 PM
To: [EMAIL PROTECTED]
Subject: Re: MQGET with CORRELID on OS/390.


I have. Sorry, I did not mention it before.

I have these 2 lines *before* the code I mentioned in my previous email.

MOVE MQMI-NONE TO MQMD-MSGID
MOVE MQCI-NONE TO MQMD-CORRELID

Thanks and regards,

Urvesh.

-----Original Message-----
From: Ronald Weinger [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: MQGET with CORRELID on OS/390.


Try moving the appropriate 'none' value to MQMD-MSGID.






"Shah, Urvesh (CAP, GEFA Contractor)" <[EMAIL PROTECTED]>
@AKH-Wien.AC.AT> on 11/18/2002 03:23:16 PM

Please respond to "MQSeries List" <[EMAIL PROTECTED]>

Sent by:    "MQSeries List" <[EMAIL PROTECTED]>


To:    [EMAIL PROTECTED]
cc:
Subject:    MQGET with CORRELID on OS/390.

Hi,

I am trying to select a message based on the value in MQMD-CORRELID and am
not able to.

Here's what I am doing:

1. Putting 3 messages in a local queue in batch mode with the correlId's
set
as '12345', '88888' and '99999'.
2. Trying to get the message with the correlId = '12345' with the following
code (again using a different program in batch):

        MOVE '12345' TO MQMD-CORRELID
        MOVE MQMO-NONE TO MQGMO-MATCHOPTIONS
        ADD MQMO-MATCH-CORREL-ID TO MQGMO-MATCHOPTIONS

The queue is PUT and GET enabled with INDEX TYPE = C (for CORREL-ID).

I tried commenting the second line in the code above making the
MATCHOPTIONS
field value = 5 (3 default + 2 for MQMO-CORREL-ID), but it doesn't seem to
retrieve the message with correl-id = '12345'.

Any pointers??

Thanks in advance for your help.

Best regards,

Urvesh.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive







The information contained in this message may be CONFIDENTIAL and is for the
intended addressee only.  Any unauthorized use, dissemination of the
information, or copying of this message is prohibited.  If you are not the
intended addressee, please notify the sender immediately and delete this
message.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to