Env Variables in Transformer
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Env Variables in Transformer
Hi All,
Is it not possible to insert Env variables in the stage variables of Transformer , we are receiving compilation error on doing the same.
Thanks.
Is it not possible to insert Env variables in the stage variables of Transformer , we are receiving compilation error on doing the same.
Thanks.
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Thanks for the answer, we have tried out that option, but the result is same, no error when we write in the Transformer but we are getting compilation error.DSguru2B wrote:Use the transform function GetEnv() I believe. Double check its name, it will be the last transform function category and the only function in that category.
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
We are invoking the function GetEnvironment from the Transformer and as the argument to it passing the Env Variable that has been declared in the job prop-parameters tab.We are chhosing the env variables from the ellipsis and then JobParameter.DSguru2B wrote:Can you post your derivation?
Also, you need to give the environment variable inside GetEnv() and not the job parameter.
Thanks.
Well, it should work. Thats why it is there. I am not at a px site so cannot check that for you.
If you have the value defined in the job properties, then you can just specify the environment variable. You do not even need to invoke the GetEnvironment() function.
If you have the value defined in the job properties, then you can just specify the environment variable. You do not even need to invoke the GetEnvironment() function.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Premium Member
- Posts: 497
- Joined: Sun Dec 17, 2006 11:52 pm
- Location: Kolkata
- Contact:
Initially I was trying that way, without the function.DSguru2B wrote:Well, it should work. Thats why it is there. I am not at a px site so cannot check that for you.
If you have the value defined in the job properties, then you can just specify the environment variable. You do not even need to invoke the GetEnvironment() function.