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 » Date format

Post new topic  Reply to topic
 Date format « View previous topic :: View next topic » 
Author Message
MSV
PostPosted: Wed Mar 21, 2007 8:14 am    Post subject: Date format Reply with quote

Acolyte

Joined: 11 Apr 2006
Posts: 59

Hi ,

I want to assign a NULL value to a DATE data type within a message definition file.

For this,I have given the following values in the physical properties of the local element:
Padding character value =NUL
Default Date Format =''

But , the following error message is found.
"default value must be type of dd-MM-yyyy"

Could anyone give me a hint.
Note: I dont want to give '01-01-0000' as default value.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Mar 22, 2007 12:33 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The error message is correct. Default values must be valid for the type of the element. You need to specify a null value. You do not say which physical format you are using, but I'll take a guess that it's XML. You need to
- Set the 'Nillable' property on your element to 'true'
- In the message set properties for XML, set 'Encoding Non-numeric Null' to 'NullEmpty'.
Back to top
View user's profile Send private message
MSV
PostPosted: Thu Mar 22, 2007 5:58 am    Post subject: Reply with quote

Acolyte

Joined: 11 Apr 2006
Posts: 59

Kimbert,

Thanks for the reply.

kimbert wrote:
You do not say which physical format you are using, but I'll take a guess that it's XML.


My message format is TDS. Environment is MB v5.0.5,Windows 2000.

kimbert wrote:

You need to
- Set the 'Nillable' property on your element to 'true'
- In the message set properties for XML, set 'Encoding Non-numeric Null' to 'NullEmpty'.


As in XML, there is no seperate property in TDS for "representation of null values".
So, In the element's TDS properties, 'Encoding Null' is set to 'NullPadFill'.(I referred ur reply from an adjacent topic which is somewhat related to my post)
"Nillable" property is also set to true.


But still, i am facing the same issue.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 22, 2007 5:42 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

The problem here is that you are trying to force a TDS value to an XML element. This does not work that way...

example date = 0x00000000000000000000; -- for tds would look like

<date xsi:nil = 1></date> in XML

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
broker_new
PostPosted: Fri Mar 23, 2007 2:22 pm    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Which type of data element separation you are using..
as it depends on that value also...

If it is All elements Delimited there is no need of setting any message defniton properties .
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
MSV
PostPosted: Mon Mar 26, 2007 5:41 am    Post subject: Reply with quote

Acolyte

Joined: 11 Apr 2006
Posts: 59

broker_new wrote:
Which type of data element separation you are using..
as it depends on that value also...


Tagged Fixed Length
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 » Date format
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.