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 InputRoot.Properties.CreationTime.

Post new topic  Reply to topic
 Accessing InputRoot.Properties.CreationTime. « View previous topic :: View next topic » 
Author Message
jgooch
PostPosted: Tue Oct 01, 2002 8:43 am    Post subject: Accessing InputRoot.Properties.CreationTime. Reply with quote

Acolyte

Joined: 29 May 2002
Posts: 63
Location: UK

We've encountered a strange error when using InputRoot.Properties.CreationTime.

Normally, it returns 'GMTTIMESTAMP '2002-10-01 15:11:51.480'' and we substring from byte 15 for 23 bytes to get the date and time.

However, we seem to occasionally receive a shorter timestamp (such as 'GMTTIMESTAMP '2002-09-30 16:32:26''). Naturally, when we substring this, our XML message finds a spurious apostrophe at the end. We cannot work out when exactly this happens - perhaps when MQ puts a message to the queue precisely on the second?

Has anyone else come across this?

At the moment, we are asking our users whether they really really require the time to thousandths of a second ('cos it's a quicker fix!)...

J.
Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Fri Oct 04, 2002 3:41 am    Post subject: Reply with quote

Centurion

Joined: 26 Jun 2001
Posts: 103
Location: IBM IT Education Services, Germany

InputRoot.Properties.CreationTime ist data type GMTTIMESTAMP. So it might be easier to CAST or EXTRACT those values you need, instead of doing string manipulation. For example:

SET Environment.Var.MyTime=CAST(InputRoot.Properties.CreationTime AS GMTTIME);
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 InputRoot.Properties.CreationTime.
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.