Get File name in External source stage

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

Roopanwita
Participant
Posts: 125
Joined: Mon Sep 11, 2006 4:22 am
Location: India

Post by Roopanwita »

yes, it is to pass input column to output , as you see in previous response:
You can create a field in the XML Input stage for it and leave the Description / XPath Expression blank which tells the stage to just pass it through
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

Post by srinivas.nettalam »

Haven't you tried writing the xpath description for that field?It should work if other columns are getting parsed correctly.
N.Srinivas
India.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

I "think" what you are trying to do is simply pass the value thru the Stage....whether it was hard coded or pulled from the External Source, there is a string value on the input link to the xml stage.

In order to "pass it thru", you have to formally map it. [the new xml stage does not have a simple pass-thru support like the old xml stages where all you have to do is mention the column on both the input link and output link].

In your Output Step....formally map the inputlink.columnName that you see in the detail pull down on the mapping tab of the output step. That should work whether or not you are parsing out other parts of the incoming xml document.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... thanks. Wasn't aware of that little nuance with the new stage. :wink:
-craig

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