Env variable value
Posted: Tue Mar 06, 2007 12:54 pm
Hi,
We have requirment:
Currently the job has DSJobStartDate defined in transformer for column dervation.
We need to make it dynamic i.e. by default it should run for the DSJobStartDate but if user want to change the date he can do it run time by typing values for the param.\
I tried making it the Job parameter but it gives the hard code vaue as DSJobStartDate.
I'm trying to make it as ENV variable i setted up below in .profile of my login id
export DTIME=`date +%Y-%m-%d`
it works if I do echo on UNIX box.
But some how i'm not able to catch the value of variable in ETL. I defined the job parameter gave the value as $ENV but it goes ahead and show $ENV as o/p.
Any ideas or any other way to do above we are on 7.1
Thanks,
We have requirment:
Currently the job has DSJobStartDate defined in transformer for column dervation.
We need to make it dynamic i.e. by default it should run for the DSJobStartDate but if user want to change the date he can do it run time by typing values for the param.\
I tried making it the Job parameter but it gives the hard code vaue as DSJobStartDate.
I'm trying to make it as ENV variable i setted up below in .profile of my login id
export DTIME=`date +%Y-%m-%d`
it works if I do echo on UNIX box.
But some how i'm not able to catch the value of variable in ETL. I defined the job parameter gave the value as $ENV but it goes ahead and show $ENV as o/p.
Any ideas or any other way to do above we are on 7.1
Thanks,