Environment variables issue

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
bensonian
Participant
Posts: 42
Joined: Tue Nov 22, 2005 2:12 pm

Environment variables issue

Post by bensonian »

Hi

I was trying to assign a 'user defined environment variable'[global] as the derivation for populating one of the fields in Transformer. The job would not even compile.

Here is the error message:

'Invalid local variable declaration'.

1.I was wondering if there is a way we can assign a 'user defined environment variable' (or $env_ ) to a transformer.
2. Is there any limitation for the transformer to just use 'local variables/params'
ajmore
Participant
Posts: 22
Joined: Fri Aug 25, 2006 5:25 am

Re: Environment variables issue

Post by ajmore »

Use GetEnvironment(%envvar%) in transformer stage
Post Reply