Calling Environment Variables in Basic Transformer
Moderators: chulett, rschirm, roy
Calling Environment Variables in Basic Transformer
I am using a BASIC Transformer in a Parallel job to generate a calendar table. The values for the start and end dates for the calendar must be obtained from a couple of environment variables.
How do I go about doing this in the BASIC Transformer. Now if it was just a Transformer stage I would create two stage variables and set their initial values as GetEnvironment("Environmentvariablename") but this does not seem to work in BASIC Transformer.
Please help !
How do I go about doing this in the BASIC Transformer. Now if it was just a Transformer stage I would create two stage variables and set their initial values as GetEnvironment("Environmentvariablename") but this does not seem to work in BASIC Transformer.
Please help !
DSguru2B wrote:You pass the environment variable as a job parameter.
The problem is that I have been asked to only use specific environment variables in the jobs. No job parameters. I am doing it this way because the job is going to be executed using a control file and the values for all the environment variables used in the job is specified in the control file.
So I declare all the environment variables in the job properties>job parameters and both my start dates and end dates are specified there as environment variables.
edited to remove utter stupidity !!
Last edited by gsym on Fri Feb 09, 2007 2:25 pm, edited 2 times in total.
Well if you already have them setup in the job parameters then why not read them inside the transformer.gsym wrote: So I declare all the environment variables in the job properties>job parameters and both my start dates and end dates are specified there as environment variables.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Thanks DSguru ...... I guess sometimes one has to put his problems in writing to realize he's already got the solution or that there was no problem at all in the first place !!DSguru2B wrote:Thats ok buddy. Glad you got it resolved. Just mark it as resolved and have a cup of tea, or coffee
Guess I had somehow made the assumption that the environment variable has to be directly called in the BASIC Transformer stage and no job parameters should be used.....
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: