Adding enviornmental Variable
Moderators: chulett, rschirm, roy
Adding enviornmental Variable
Hi All,
Can any body will suggest me ow to add enviornment variable in datastage parallel job.
Can any body will suggest me ow to add enviornment variable in datastage parallel job.
Could you explain bit more on you question.
You can add User defined Variable through Datastage Adminstrator client.
And you can use the same in jobs, optionally with $PROJDEF default value.
$ENV is used to access the OS variables in you jobs.
You can add User defined Variable through Datastage Adminstrator client.
And you can use the same in jobs, optionally with $PROJDEF default value.
$ENV is used to access the OS variables in you jobs.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
okay.
but there are several options avaliable in job properties like
1-general
2-parallel
3-compiler
4-operator specific
5-reporting
so please be specific how I have to add the enviornment variable.
I am using recent 7.5x ds version parallel job in unix platform.
Another thing can reffer these variables in sequence job.
please suggest me.
but there are several options avaliable in job properties like
1-general
2-parallel
3-compiler
4-operator specific
5-reporting
so please be specific how I have to add the enviornment variable.
I am using recent 7.5x ds version parallel job in unix platform.
Another thing can reffer these variables in sequence job.
please suggest me.
I don't believe the question as asked is being addressed:
Carry on.
It's not about creating and using variables during runtime but about creating and setting variables during runtime.sjordery wrote:Actually I want to assign some values to the enviornment variables from a particular job during run time
Carry on.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: Adding enviornmental Variable
Do you mean:sjordery wrote:Hi All,
Can any body will suggest me ow to add enviornment variable in datastage parallel job.
(a) add a new environment variable that a job can use as a job parameter?
(b) add an environment variable to a job as a job parameter?
(c) change the value of an environment variable while a job is running?
(d) something else?
The first requires use of the Administrator client or editing the EnvVarDefns section of your DSParams file (which has implications for promoting into test/production).
The second involves clicking the Add Environment Variable button in the job's properties (Parameters tab).
The third is unsupported.
The fourth involves you responding to this post.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi Wurlod,
Sorry for late reply.
Actually I want to pass values of some attributes to the enviornmental variable in a parallel job so that I can reffer these values in the sequence job to use in the email notification activity.
So will you please tell me for this purpose how I have to add the enviornmental variable and pass the values to those variables.
Sorry for late reply.
Actually I want to pass values of some attributes to the enviornmental variable in a parallel job so that I can reffer these values in the sequence job to use in the email notification activity.
So will you please tell me for this purpose how I have to add the enviornmental variable and pass the values to those variables.
Forget about my 'path' statement. You need to resolve the confusion about what exactly it is you are trying to accomplish. Ray posted a list of four possible meanings - which one is correct? Any? None?
To me, it sounds like (c) which is the third item in his list and as mentioned, it is unsupported. Hence my assertation that - if (c) is the answer - you'll need to find another way to solve your problem.
To me, it sounds like (c) which is the third item in his list and as mentioned, it is unsupported. Hence my assertation that - if (c) is the answer - you'll need to find another way to solve your problem.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Its similar to passing values between jobs. Write your value to a flat file and in the sequence job activity, define a parameter to the job that needs to read that value. In the derivations you can call a small routine that cats the file and reads its contents using DSExecute().
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.