XML filename for each record processed

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

XML filename for each record processed

Post by sourabhverma »

Hi All,

I have one server job which is reading multiple XML files.The job design is like this

Folder --> XML I/P --> Trans`r --> Seq file

In folder stage i am using *.XML wildcard for file name. I want to get the filename against each record processed in the seq file for tracking purpose.

Pls give your inputs on the above requirement.
Thanks,
Sourabh Verma
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You've already got it in the folder stage, yes? Just pass it through all the way to the Sequential stage. Anything in an XML stage without an XPath expression in the Description column is such a 'pass through' value and will be propogated out the other side.

The only other issue might be if the Folder stage is set to 'Fully qualified' and all you want is the filename. In that case strip out just the portion after the last delimiter in the transformer.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

Thank you Mr. Craig Hulett

with your suggestion i am able to do it
Thanks,
Sourabh Verma
Post Reply