Convert records in DB2 tables into XML files

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
bijojames
Participant
Posts: 12
Joined: Wed Nov 28, 2007 10:27 pm
Location: THANE

Convert records in DB2 tables into XML files

Post by bijojames »

Hi All
I have some 100 records in my DB2 table. My requirement is to convert those records into separate XML files in such a way that each XML will have the details of one and only one record. Here in this case i want 100 XML file as out put.

How can i desgin a Datastage job for this requirement. Please help me on this

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

Post by chulett »

Sure, utilize the 'Trigger Column' functionality in the XML Output stage to do this. A column that increments per record would do the trick.
-craig

"You can never have too many knives" -- Logan Nine Fingers
bijojames
Participant
Posts: 12
Joined: Wed Nov 28, 2007 10:27 pm
Location: THANE

Post by bijojames »

Hi Craig
It will be great if yuo can explain the design details little more..


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

Post by chulett »

It would be great if you checked the documentation, the functionality is well explained there. It is literally as simple as I stated, though.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

FYI - The online help in the stage is decent, there is the XMLPACK_20_Designer pdf in your Docs directory and lastly there's the XML Best Practices documentation from Kim Duke's website in the 'Tips' section. All are required reading for working with XML in DataStage, *especially* the last one. Well worth your time.
-craig

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