Hi,
I need to change the value of an environment variable at runtime. How can i achieve this? How can i chnage the values of them in a parm files in unix. I am using parameter sets and parameter value files in datatstage, and corresponding paramfiles in unix.
Changing values of Environmental variables at run time
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can change them, but the values used by your job won't change because they're read into the job processes' memory when the job starts.
So please confirm your reason for wanting to change environment variables or parameter values once the job is running. Then maybe we can look at techniques.
So please confirm your reason for wanting to change environment variables or parameter values once the job is running. Then maybe we can look at techniques.
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.
I am using an Oracle enterprise stage to load data into table using RCP. This does not have an inbuilt commit. So we are using the APT_ORA_UPSERT_COMMIT_LEVEL environment parameter. Based on the load size we may need to change this value. this is the requirement behind changing the environment value.
You should be able to use a pre job routine to get the parameter value from a unix file, and overwrite the default value.
You would include the environment variable as a parameter in the job and then your pre job routine would overwrite whatever you have set the default as.
We use a similar logic here, whereby we overwrite the apt_config_file environment variable from $PROJDEF to which ever config file we wish.
You would include the environment variable as a parameter in the job and then your pre job routine would overwrite whatever you have set the default as.
We use a similar logic here, whereby we overwrite the apt_config_file environment variable from $PROJDEF to which ever config file we wish.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
But it remains the case that a running job reads the values when it starts, and will not pick up any changes made while it's running.
So what you want to accomplish must be wrought prior to the job starts.
So what you want to accomplish must be wrought prior to the job starts.
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.