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 » How to default value to zero in Messageset?

Post new topic  Reply to topic
 How to default value to zero in Messageset? « View previous topic :: View next topic » 
Author Message
Fuzzy_mq
PostPosted: Thu Sep 15, 2005 9:20 am    Post subject: How to default value to zero in Messageset? Reply with quote

Apprentice

Joined: 27 May 2004
Posts: 31
Location: US

Hi,

I am converting CWF to XML. I have an attribute in xml as integer. The value in CWF is space. I want it to come as '0' in the xml. Basically if there is a value, it should take that else if space then default to zero. Is there some property in message set that I change to do this.

Thanks,
Scht
Back to top
View user's profile Send private message
Fuzzy_mq
PostPosted: Thu Sep 15, 2005 9:24 am    Post subject: Reply with quote

Apprentice

Joined: 27 May 2004
Posts: 31
Location: US

Forgot to mention, this is on WBIMB V5
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Sep 15, 2005 8:03 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

I dont think you can do if then conditional filling up of values in the message set...

What u could do is , by default fill in 0 always....and when u have some value SAT that in your ESQL....u'll save on a ELSE condition...
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Sep 16, 2005 12:21 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You may be able to do this using the MRM's null handling features. Try this:
1. Go to the CWF physical properties of the attribute and set 'Encoding Null' to 'NullLiteralValue'. Set 'Encoding Null Value' to space.
2. Go to the XML physical properties for the message set. Set 'Encoding Numeric Null' to 'NullValue' and set 'Encoding Numeric Null Value' to '0'.

You should find that
- the space becomes a null value in the tree, because of the CWF settings.
- the null value in the tree becomes a '0' in the XML output because of the XML settings.

Note that, because the XML null handling properties apply to the entire message set, any explicit nulls in your tree will now become '0' in your XML output.
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 » How to default value to zero in Messageset?
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.