Page 1 of 1

Dynamically pass values from transformer to xml stage

Posted: Wed Aug 08, 2012 3:37 am
by Murali4u
All,

I have a requirement to pass a value from transformer stage (one of the column say 'Dummy' which has distinct values) and i need to assign this value to the xml file name in xml write stage instead of static name.

So whenever there is a distinct value encounter, the corresponding xml should have the dummy column value as file name.

Pls let me know if any one has some idea on this. Thanks in advance.

Posted: Wed Aug 08, 2012 4:26 am
by eostic
one possibility is to use the trigger column and allow the xml stage to write multiple files with a suffix that it generates dynamically (to keep the files unique, assuming that you are creating more than one in a single stream), and then post process the set of xml files with another DS job, or another process, to rename them as desired.