Flattening a file which has XML as well as sequential data

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
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

Parse it first....getting the xml into a single large varchar column, along with everything else....then go to an XMLInput Stage and do the XML work...."carry" the other columns on both the input link and the output link, with NOTHING in their Description property....the stage supports the concept of "passthru".......they'll just go thru unchanged.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
senthilt1
Participant
Posts: 134
Joined: Mon Nov 19, 2007 2:17 am

Post by senthilt1 »

Thank You.. will try that and get back to you..!!!

Regards,

Senthil
senthilt1
Participant
Posts: 134
Joined: Mon Nov 19, 2007 2:17 am

Post by senthilt1 »

It worked. But I am getting my first column as NULL. It is a NULLABLE column according to its definition but the input does hold a value for this column. I am using the same input, the one I posted.

Do I have make some adjustments in the settings to overcome this?

Thanks,

Rakesh Narayan.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which "first column" - in the XML or outside of the XML?
-craig

"You can never have too many knives" -- Logan Nine Fingers
senthilt1
Participant
Posts: 134
Joined: Mon Nov 19, 2007 2:17 am

Post by senthilt1 »

Outside the XML.

So in this case it will be '11111'. Instead of that it comes as NULL. It is a varchar field.

Thanks,

Senthil
Post Reply