Page 1 of 1

Evironmental Variable in DS Transformer

Posted: Wed Jun 18, 2008 9:23 am
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

Posted: Wed Jun 18, 2008 6:28 pm
by ray.wurlod
"Some long error message" is singularly unhelpful. Please post the actual error message.

Posted: Wed Jun 18, 2008 11:36 pm
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.