ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » accessing MQMD.PutTime in WMQI

Post new topic  Reply to topic
 accessing MQMD.PutTime in WMQI « View previous topic :: View next topic » 
Author Message
kwelch
PostPosted: Fri Sep 05, 2003 4:04 am    Post subject: accessing MQMD.PutTime in WMQI Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi,

When I look at the MQMD messagest in WMQI it has the PutTime described as STRING fixed format of 8 characters. We also have an application that displays PutTime and the display shows this: '12345678'.
However, when I try to pull out the last two bytes of this string(7 using the SUBSTRING command, I get an error saying that it's an invalid type that I can't do a substring on type GMTTIME "'GMTTIME 12:34:45.678'".
How I got around this was by using CAST to STRING then CAST to INTEGER and doing my calculation. So problem is solved but I don't understand why WMQI thinks this is a GMTTIME format. Can anyone explain this to me????? Thanks.

Karen
Back to top
View user's profile Send private message Send e-mail
Craig B
PostPosted: Fri Sep 05, 2003 4:31 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Hi,

If you are mamipulating the MQMD.PutTime field then this is a timestamp field within ESQL and therefore will be treated as one. The MRMs MQMD messageSet has this field as a string because these were created before V2.1. In versions of WMQI prior to V2.1, there was no DATETIME datatype in the MRM and therefore this had to be modelled as string data.

Are you manipulating the MQMD.PutTime field in your scenario? Or are you manipulating a messageSet where you have defined this as a STRING. This was not clear to me in your description. If you are manipulating the MQMD PutTime then this will be a Timestamp field. If it is your own MRM messageSet field, could you provide details of your MRM messageSet and how this field is manipulated through your flow.
_________________
Regards
Craig
Back to top
View user's profile Send private message
kwelch
PostPosted: Fri Sep 05, 2003 4:41 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Hi Craig,

I am accessing the MQMD.PutTime field on the input message and I am at WMQI V2.1 and WMQI is recognizing it as a GMTTIME but the MQMD messageset does say string fixed length 8 chars. If I understand you correctly, you are saying that the MQMD messageset does not reflect the V2.1 types within ESQL and I should not rely on it as a reference when I try to manipulate fields in the MQMD? Thanks!

Karen
Back to top
View user's profile Send private message Send e-mail
Craig B
PostPosted: Fri Sep 05, 2003 4:45 am    Post subject: Reply with quote

Partisan

Joined: 18 Jun 2003
Posts: 316
Location: UK

Hi,

Yes ... your understanding is correct. WMQI does not use the MRM MQMD messageSet to parse its MQMD, and it does not use any of the other MRM header definitions to parse the other headers. WMQI has a builtin parser to handle each of the recognised headers, and therefore there is an MQMD parser to parse the MQMD. If you are interested in what datatypes are produced for each field, then the Working With Messages book has an Appendix which lists the field Names and datatypes of the fields that are created by these parsers.

Hope this helps.
_________________
Regards
Craig
Back to top
View user's profile Send private message
kwelch
PostPosted: Fri Sep 05, 2003 4:51 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

Craig,

Thanks! As with all my posts you answer you have made things clear.

Karen
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » accessing MQMD.PutTime in WMQI
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.