XML Output stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sri75
Premium Member
Premium Member
Posts: 132
Joined: Thu Sep 09, 2004 12:42 pm

XML Output stage

Post by sri75 »

Hi , I am writing data to xml file. we get data from different tables and needs to append the different xml chuncks from different tables to final xml.


I have 2 records coming from the incoming process
2 records have same amount- the oout put from the xml is like this,
<CvrTypeInfo>
<CvrPlanName>DENTAL</CvrPlanName>
<CvrPlanName>MEDICAL</CvrPlanName>
<SubTotalAmt>20</SubTotalAmt>
<CvrMbrInfo>
<CvrMbr>SUB, SPOUSE</CvrMbr>
</CvrMbrInfo>
</CvrTypeInfo>

but I need like this

<CvrTypeInfo>
<CvrPlanName>DENTAL</CvrPlanName>
<SubTotalAmt>20</SubTotalAmt>
<CvrMbrInfo>
<CvrMbr>SUB, SPOUSE</CvrMbr>
</CvrMbrInfo>
</CvrTypeInfo>
<CvrTypeInfo>
<CvrPlanName>MEDICAL</CvrPlanName>
<SubTotalAmt>20</SubTotalAmt>
<CvrMbrInfo>
<CvrMbr>SUB, SPOUSE</CvrMbr>
</CvrMbrInfo>
</CvrTypeInfo>

Ccan you plese suggeste me how to achheive this. if the amounts are different I am getting what I want, but if the amounts are same. I am not

Thanks in advance
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

What is the column that you have defined as key?
Arun
Pavan.daddhu
Participant
Posts: 1
Joined: Wed Jun 25, 2008 1:29 am
Location: bangalore
Contact:

Post by Pavan.daddhu »

arunkumarmm wrote:What is the column that you have defined as key?


Hi,

Please Keep unique key column in xml file.

Unique key is like a Sequence number.

It will work..... 8)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Parallel job (as marked) or server job (as posted)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

We're going with "as marked". :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply