Issues with XML output file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

I believe you have 'REP_TYPE' as the repitation (Key) in your XMLoutput stage. You should change it to 'S_NO' from what I see in your sample data.
Arun
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

I am answering my own question.
I added these columns as primary keys in XML output stage_TYPE, PROCESS_OFFICE, PACKAGE _LEVEL.
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

Did you add all of these columns as key? I dont think its possible. You can have only one column
Arun
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

Yes I did added Key for all columns except one column in the XML output Stage. my table had 29 columns and I added 28 columns as Key.
Is this the correct way of designing the job ??? but I got correct results as excepted.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm surprised that even ran as only one 'repetition element' is allowed and I could have sworn it errors out when multiple are detected. What exact version of DataStage are you running?
-craig

"You can never have too many knives" -- Logan Nine Fingers
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

There are no errors/warnings for the job and the version of Datastage I am using is 8.5
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Beats me....it definitely throws an error when you don't supply any repetition element, but I haven't tried providing many in a very long time...I suspect it finds the first one and is happy. Only one is needed....provided that it's the correct one... ...quite clearly, one of the ones that was selected is the "right" one.... Congrats on getting it working.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

Thank You Ernie, I am working on a project which requires generating XML output for more than 50 tables. after generating more than 20 tables till now what I understood is that we can add multiple repetition elements.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

While you can specify multiple, please understand that only one is actually needed. And I found an example of the error I recalled, one such example is noted here: "Error: The link contains more than one repetition rule". Looks like either only the XML Input stage has the error reporting logic built in or perhaps it is broken in the 8.5 XML Output stage. [shrug]
-craig

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