Re: MQGET Question
Yes, I know. So how do I save these values off for use later? Currently I'm doing this ... Dim i as Integer Dim bytLastMsgID as MQBYTE24 For i = 0 To 23: bytLastMsgID.MQByte(i) = md.MsgID.MQByte(i): Next Is that the best way? Thanks! -Original Message- From: Ruzi R [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: Re: MQGET Question CorrelID and MsgID are defined as MQBYTE24. Ruzi --- "Meek, Bill" <[EMAIL PROTECTED]> wrote: > Will, Thanks for the reply. I have tried this very > thing, but I get a "type mismatch" error because > md.MsgID and md.CorrelID are > defined as binary arrays. That's the whole crux of > my problem, figuring out how to store and retrieve > these two fields. Any > suggestions? Bill > > -Original Message- > From: WR [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 2:59 PM > To: [EMAIL PROTECTED] > Subject: Re: MQGET Question > > > At 10:36 AM Tuesday 8/19/2003, Meek, Bill wrote: > >Can someone provide me some sample VB code of how > to get a specific > >message by using the MsgID or CorrelID field? > > Use the MsgID or CorrelID properties on the Message > Descriptor object to > set the value you want to select on. You may want > to save the Message ID > from an outgoing message to use for selecting a > returning Correlation ID as > in the following code fragments: > > Global SavedMsgID As String > ' Store the Message ID you want to select on in > SavedMsgID > GetMsgDesc.CorrelId = SavedMsgID > MQGET QMConnHandle, IQhandle, GetMsgDesc, > GetMsgOpts, BuffLen, GetBuffer, > ActualMsgLength, CompletionCode, Reason > > Hope this helps! > > -Will > > 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 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
Re: MQGET Question
CorrelID and MsgID are defined as MQBYTE24. Ruzi --- "Meek, Bill" <[EMAIL PROTECTED]> wrote: > Will, Thanks for the reply. I have tried this very > thing, but I get a "type mismatch" error because > md.MsgID and md.CorrelID are > defined as binary arrays. That's the whole crux of > my problem, figuring out how to store and retrieve > these two fields. Any > suggestions? Bill > > -Original Message- > From: WR [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 2:59 PM > To: [EMAIL PROTECTED] > Subject: Re: MQGET Question > > > At 10:36 AM Tuesday 8/19/2003, Meek, Bill wrote: > >Can someone provide me some sample VB code of how > to get a specific > >message by using the MsgID or CorrelID field? > > Use the MsgID or CorrelID properties on the Message > Descriptor object to > set the value you want to select on. You may want > to save the Message ID > from an outgoing message to use for selecting a > returning Correlation ID as > in the following code fragments: > > Global SavedMsgID As String > ' Store the Message ID you want to select on in > SavedMsgID > GetMsgDesc.CorrelId = SavedMsgID > MQGET QMConnHandle, IQhandle, GetMsgDesc, > GetMsgOpts, BuffLen, GetBuffer, > ActualMsgLength, CompletionCode, Reason > > Hope this helps! > > -Will > > 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
Re: MQGET Question
Will, Thanks for the reply. I have tried this very thing, but I get a "type mismatch" error because md.MsgID and md.CorrelID are defined as binary arrays. That's the whole crux of my problem, figuring out how to store and retrieve these two fields. Any suggestions? Bill -Original Message- From: WR [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:59 PM To: [EMAIL PROTECTED] Subject: Re: MQGET Question At 10:36 AM Tuesday 8/19/2003, Meek, Bill wrote: >Can someone provide me some sample VB code of how to get a specific >message by using the MsgID or CorrelID field? Use the MsgID or CorrelID properties on the Message Descriptor object to set the value you want to select on. You may want to save the Message ID from an outgoing message to use for selecting a returning Correlation ID as in the following code fragments: Global SavedMsgID As String ' Store the Message ID you want to select on in SavedMsgID GetMsgDesc.CorrelId = SavedMsgID MQGET QMConnHandle, IQhandle, GetMsgDesc, GetMsgOpts, BuffLen, GetBuffer, ActualMsgLength, CompletionCode, Reason Hope this helps! -Will 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
Re: MQGET Question
At 10:36 AM Tuesday 8/19/2003, Meek, Bill wrote: Can someone provide me some sample VB code of how to get a specific message by using the MsgID or CorrelID field? Use the MsgID or CorrelID properties on the Message Descriptor object to set the value you want to select on. You may want to save the Message ID from an outgoing message to use for selecting a returning Correlation ID as in the following code fragments: Global SavedMsgID As String ' Store the Message ID you want to select on in SavedMsgID GetMsgDesc.CorrelId = SavedMsgID MQGET QMConnHandle, IQhandle, GetMsgDesc, GetMsgOpts, BuffLen, GetBuffer, ActualMsgLength, CompletionCode, Reason Hope this helps! -Will 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