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 » Customized DATETIME format in MRM

Post new topic  Reply to topic
 Customized DATETIME format in MRM « View previous topic :: View next topic » 
Author Message
jimliu
PostPosted: Mon Aug 12, 2002 10:25 am    Post subject: Customized DATETIME format in MRM Reply with quote

Novice

Joined: 19 Dec 2001
Posts: 12

Hi,

I'm trying to transform an XML message (imported from DTD) into a TAG message both stored in the MRM. I have two fields for the TAG format, Creation Date and Creation Time which I am trying to transform to from an XML field with format "yyyy-mm-ddThh:mm:ssZ". The Creation Date should be of format "YYYYMMDD" while the Creation Time should be "HHMMSS".

I've been reading that the TAG tab (after adding the TDS format layer) for those two DATETIME fields have a entry called format. How exactly do I input the format I want to get into there? I've tried just adding 'yyyyMMdd' and 'hhMMss' without the quotes because I saw a similar example elsewhere but WMQI is giving me an error in the event log:

( SIPBK02.default ) Data Length Error

Data length inconsistent with element definition while writing a TDF message. Element name: 'CreationDate' Element type: STRING Expected data length: 8 Actual data length: 10 Data: 00/00/0000

Make sure that the length of specified binary data item is the same as the expected length, as defined in the message definition or that the length of specified string data item is not greater than the expected length.

How exactly do I this? Should I be adding quotes? Or should everything be capital? Will this even work this way or am I making this up in my head?

Any help would be greatly appreciated...

Jim
Back to top
View user's profile Send private message
Miriam Kaestner
PostPosted: Tue Aug 13, 2002 1:33 am    Post subject: Reply with quote

Centurion

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

Your elements must be of simple type DATETIME, not STRING.
Back to top
View user's profile Send private message Send e-mail
jimliu
PostPosted: Tue Aug 13, 2002 5:26 am    Post subject: Reply with quote

Novice

Joined: 19 Dec 2001
Posts: 12

They are defined as DATETIME, not STRING, which is making me even more confused. I'm not sure why the format in the error is saying it should be length 10 with format "00/00/0000" when my inputted format is either "yyyyMMdd" or "hhMMss". Unless the syntax is wrong...

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Customized DATETIME format in MRM
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.