Datastage XML

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
kogads
Premium Member
Premium Member
Posts: 74
Joined: Fri Jun 05, 2009 5:36 pm

Datastage XML

Post by kogads »

Can anyone explain how to read xml files in Datastage parallel jobs , i saw a lot of posts which mention how to output to xml stage and also reading through a folder stage in server jobs but i dont see how to read xml files in parallel jobs any where ... any help is appreciated .Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

-craig

"You can never have too many knives" -- Logan Nine Fingers
prakashdasika
Premium Member
Premium Member
Posts: 72
Joined: Mon Jul 06, 2009 9:34 pm
Location: Sydney

Post by prakashdasika »

You can use a external source stage as specified by Ernie in his blog or do the same thing using a wrapper stage (custom stage) and do a 'ls' to get the xml file and in the input tab of XMLInput stage select the source as 'URL/Path'.

If the name of file remains same then you can also have a transformer with a column that contains the path (including the name of the file) which will be input to the XMLinput stage. This stage should also have a dummy Row Gen stage.
Prakash Dasika
ETL Consultant
Sydney
Australia
Ravi.K
Participant
Posts: 209
Joined: Sat Nov 20, 2010 11:33 pm
Location: Bangalore

Post by Ravi.K »

Use the below thread for XML file reading at Parallel Jobs.

viewtopic.php?t=138188&highlight=XML
Cheers
Ravi K
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Ravi.K wrote:Use the below thread for XML file reading at Parallel Jobs.

viewtopic.php?t=138188&highlight=XML
That was the exact thread I found and used to help me get started using XML input.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Post Reply