Passing parameters through a file
Moderators: chulett, rschirm, roy
Passing parameters through a file
Hi all,
Can we pass job parameters through a file while running a job instead of hard coding them in job properties or entering them manually while running a job in parallel jobs. I think it is possible but dont know in what way we can implement that in Parallel jobs. Please give some suggestions.
Can we pass job parameters through a file while running a job instead of hard coding them in job properties or entering them manually while running a job in parallel jobs. I think it is possible but dont know in what way we can implement that in Parallel jobs. Please give some suggestions.
-
- Participant
- Posts: 42
- Joined: Tue Jan 18, 2005 5:48 am
-
- Participant
- Posts: 42
- Joined: Tue Jan 18, 2005 5:48 am
-
- Participant
- Posts: 107
- Joined: Wed Sep 29, 2004 10:15 am
Hi
There is another option available in datastage server jobs but i am not sure that will be possible in parallel jobs
you have to write a piece of code for the job which is using the job parameters
compile the job which is using the job parameters and after the compilation open the job control tab of job properties and add a piece of code which will read a file and assign the values to the parameter list.
The external file will contain the parameter values stored in a textfile and be ensure to give the paramter values as related to parameters defined.
RK
There is another option available in datastage server jobs but i am not sure that will be possible in parallel jobs
you have to write a piece of code for the job which is using the job parameters
compile the job which is using the job parameters and after the compilation open the job control tab of job properties and add a piece of code which will read a file and assign the values to the parameter list.
The external file will contain the parameter values stored in a textfile and be ensure to give the paramter values as related to parameters defined.
RK
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Hi RK,rkdatastage wrote:Hi
There is another option available in datastage server jobs but i am not sure that will be possible in parallel jobs
you have to write a piece of code for the job which is using the job parameters
compile the job which is using the job parameters and after the compilation open the job control tab of job properties and add a piece of code which will read a file and assign the values to the parameter list.
The external file will contain the parameter values stored in a textfile and be ensure to give the paramter values as related to parameters defined.
RK
Are you mentioning that a job A reads the parameter file and populated the value required to job B and calls it Or job A calls jobB which populate the parameter for job A
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
-Kumar