XML stage in DS v8.5

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
senthilmp
Participant
Posts: 85
Joined: Mon Sep 22, 2008 6:11 am

XML stage in DS v8.5

Post by senthilmp »

Am using XML 8.5 stage to read an XML file, when there are values in the XML file the stage works fine and gives the desired result. But when we are not giving any tag for that particular field in the input XML file the output is derived as 1.00 rather than a null. Have anyone encountered this issue? Please share your suggestion.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

While anything is possible, I've never seen it put something "else" in there. Check your logic and be sure you are debugging this problem directly on the output link from the Stage, and not anywhere downstream....

...be careful about what it means to have "no value".....if you have left the defaults "as is" [there are a variety of settings that control whether you should get null or blanks], and this element is NOT your repetition element, then it will be null.....

...but if this element IS your repetition element, then something much different could be occurring --- if you have "repetition element required", then you may actually be "dropping" that node entirely....and thus skewing behavior downstream.

It depends on a lot of things, like the depths of your structure, but consider all of these possibilities in your analysis.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply