Hi
I want to assign DataStage Environment variable defined in the datastage adminstrator value from file.
To explian the above in detail,
I have a file called assignvalue.txt, I need to read this file and assign content of this file to DataStage Environment variable defined in the datastage adminstrator. That means, it contains set of file names, i have to pass this filenames to the parameter.
Please let us know how I can do this? Thanks in Advance.....
Assigning a value from file to environment variables
Moderators: chulett, rschirm, roy
Assigning a value from file to environment variables
With regards,
Xpert
Xpert
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There's an internal inconsistency in what you wrote. I must assume that you want to override the value defined in the Administrator client with some other value obtained from a file.
There is no problem assigning a new value to an environment variable; you can use the set command at operating system level, or the ENV SET command at TCL level.
To pick this up automatically in a job, simply have the default value for the particular environment variable job parameter to $ENV.
Otherwise you can pick up the value by any means you like (for example an Execute Command activity or a Routine activity) and pass that into the Job activity through the regular job parameters grid.
There is no problem assigning a new value to an environment variable; you can use the set command at operating system level, or the ENV SET command at TCL level.
To pick this up automatically in a job, simply have the default value for the particular environment variable job parameter to $ENV.
Otherwise you can pick up the value by any means you like (for example an Execute Command activity or a Routine activity) and pass that into the Job activity through the regular job parameters grid.
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.
Yes you are correct ray. I need to overwrite the value defined in the Client Administrator. I need help on this. How can I do this? Thanks in Advance.ray.wurlod wrote:There's an internal inconsistency in what you wrote. I must assume that you want to override the value defined in the Administrator client with some other value obtained from a file.
There is no p ...
With regards,
Xpert
Xpert
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: