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 » Null value in TDS message

Post new topic  Reply to topic
 Null value in TDS message « View previous topic :: View next topic » 
Author Message
abcmno123
PostPosted: Mon Dec 11, 2006 4:19 am    Post subject: Null value in TDS message Reply with quote

Novice

Joined: 16 Aug 2006
Posts: 22

Hi all,

I am converting a TDS message to XML.
Consider that I have the input TDS message as data1,data2,data3,data4,data5.In the message set, the min occurrence for all the data elements is 0.Now, if say data2 value is empty or null then the input message that is passed is data1,,data3,data4,data5

But the problem with this is that the output XML message which is getting created is not having data2 tag.
My requirement is that the output XML message must contain the data2 tag also but the value inside that must be empty.like <data2></data2>.

Kindly help.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 4:46 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to read about NULL handling in MRM-TDS and NULL handling in MRM-XML if you are modelling your output XML.

You should look at the CSV sample in the WMB Samples Gallery, too.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
abcmno123
PostPosted: Mon Dec 11, 2006 8:18 pm    Post subject: Reply with quote

Novice

Joined: 16 Aug 2006
Posts: 22

Thanks a lot Jeff.
Setting Encoding Null property to NullLiteralValue solved the problem.
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 » Null value in TDS message
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.