Evironmental Variable in DS Transformer

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
senthilt1
Participant
Posts: 134
Joined: Mon Nov 19, 2007 2:17 am

Evironmental Variable in DS Transformer

Post by senthilt1 »

Hi All,

I am mapping the enviromental variable in the field derivation for a output column in the transformer. while compiling it gives some long error message. But the same env variable used in seq file stage working fine.

I have declared this variable in my job parameter and given the default as $ENV.

It seems only in transformer it gives issues. I tried replacing with Basic Transformer, here its working fine.

Could anyone suggest whats the issue and solution for this.

Thanks,

Senthil P
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"Some long error message" is singularly unhelpful. Please post the actual error message.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

Search the forum, this has been discussed many times, You can use a function called GetEnvironment() (if I remember correctly) to get the values of environment variables in a Transformer.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply