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 » reading DateTime

Post new topic  Reply to topic
 reading DateTime « View previous topic :: View next topic » 
Author Message
UrsusMajor
PostPosted: Wed Aug 09, 2006 7:44 am    Post subject: reading DateTime Reply with quote

Newbie

Joined: 28 Jul 2005
Posts: 5
Location: Slovakia

Hi,
I have some strange problem when I want to read "long datetime" from input message.
I have defined messageset within message containing element "TestDateTime". I have set runtime parser of messageset to "MRM". In physical properties of messageset I set "Datetime settings" to "Derive default dateime format from logical type" (default). Then I change physical properties of "TestDateTime" element to "yy-MM-dd'T'HH:mm:ss.SSSSSS".
But when I put test message "06-08-08'T'12:30:40.123456" it reads only "06-08-08-'T'12:30:40.456" (in miliseconds section it reads only last 3 digits, doesn't matter if there is pattern "SSS" ... "SSSSSS" always only last 3)
Anyone any idea whats wrong ?
Thx a lot

P.S. I have tried CWF and XML wire formats... both the same. In CWF there is one more strange thing : when input is ...x.000000 it cut all "zeroes" and generate error due to incorrect input vs. pattern ...
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 09, 2006 7:56 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What version?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
UrsusMajor
PostPosted: Wed Aug 09, 2006 8:07 am    Post subject: Reply with quote

Newbie

Joined: 28 Jul 2005
Posts: 5
Location: Slovakia

jefflowrey wrote:
What version?

Sorry I forgot ... AIX ver. 5.0.1.7
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 09, 2006 8:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What version of broker.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
UrsusMajor
PostPosted: Wed Aug 09, 2006 8:12 am    Post subject: Reply with quote

Newbie

Joined: 28 Jul 2005
Posts: 5
Location: Slovakia

jefflowrey wrote:
What version of broker.

AIX system -> broker version 5.0.1.7
right now testing on Windows system same broker version.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Aug 09, 2006 8:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Okay, looking a little closer...

You've got the T in there, that indicates that you're using an ISO8601 time format, which only supports three digits of SSS.

I think.

Open a PMR. I've heard of the same missing zero problem in v6.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ghada
PostPosted: Thu Aug 10, 2006 1:57 am    Post subject: Reply with quote

Apprentice

Joined: 13 Oct 2005
Posts: 41
Location: Egypt

Hi UrsusMajor

In the messageSet.mset file
in the physical format properities of the XML put

Use Default Date Time Format to: 'I'

this type accepts many date formats I tried your date format and it was successfuly parsed.

I hope it helps

Ghada
Back to top
View user's profile Send private message Yahoo Messenger
UrsusMajor
PostPosted: Thu Aug 10, 2006 4:46 am    Post subject: Reply with quote

Newbie

Joined: 28 Jul 2005
Posts: 5
Location: Slovakia

Hello,
I really appreciate your response, but I have no clue what do you mean with
ghada wrote:

Use Default Date Time Format to: 'I'

Could you please explain it little bit more...
Thx

P.S. FixPack 08 didn't solve it ... I'll open PMR with IBM at monday...
Back to top
View user's profile Send private message
ghada
PostPosted: Sat Aug 12, 2006 10:58 pm    Post subject: Reply with quote

Apprentice

Joined: 13 Oct 2005
Posts: 41
Location: Egypt

hi
I mean

go to your messageset project
click on the messageset.mset
on physical properities click on the physical properity for example "XML1"
On the field " Use default date time format" set its value to "I"

its a format in the broker that accepts many formats of dateTime

I copied these lines from IBM support pac "IA96_0604" to show how to configure the physical property

* Check 'Suppress DOCTYPE'.
* Set Root Tag Name to blank.
* Uncheck 'Enable Versioning Support'.
* Click 'Use default dateTime Format' and set value to I.
* Check 'Strict DateTime checking'.
* Set Time Zone to GMT-05:00 (New York).


Try it, I hope it helps

Ghada
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » reading DateTime
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.