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 » General IBM MQ Support » Initialize XML output message fields for empty elements

Post new topic  Reply to topic
 Initialize XML output message fields for empty elements « View previous topic :: View next topic » 
Author Message
mqxplorer
PostPosted: Fri Mar 02, 2012 12:11 pm    Post subject: Initialize XML output message fields for empty elements Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

Hi All,

I have gone through this forum and info center to find out the way to initialize XML output message fields for empty fields, but no luck....I have done something similar for COBOL messages using the below info I found in developer best practices document.

Code:
Initialize MRM output message fields using MRM null/default rather than ESQL
1. Messageset.mset > CWF>Output Settings>Policy for missing elements -> UseNullValue
2. Cobol import -> Create null values for all fields if initial values not set in Cobol
3. Avoids statements like -> Set OutputRoot.MRM.THUVTILL.IDTRANSIN.NRTRANS = ''


Is there some similar procedure/settings as above for XML messages? It would make my life very relaxed when dealing with big xml messages with a lot of mandatory elements.

Thanks
mqxplorer
Back to top
View user's profile Send private message
mqxplorer
PostPosted: Mon Mar 05, 2012 11:39 am    Post subject: Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

Hi All,

Could someone help me solve this? This is very important for me.

Thanks
mqxplorer
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Mar 05, 2012 12:13 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

An empty XML field should be both mandatory and nillable.
Back to top
View user's profile Send private message
mqsiuser
PostPosted: Tue Mar 06, 2012 1:28 am    Post subject: Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

mqjeff wrote:
An empty XML field should be both mandatory and nillable.


This post had a similar issue, though it's title is a bit missleading: It's not about (extracting) from a DB, but writing out... so the thing you are searching for.
_________________
Just use REFERENCEs
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 » General IBM MQ Support » Initialize XML output message fields for empty elements
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.