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
You cannot modify your parameter values inside the job itself.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 42
- Joined: Tue Jan 18, 2005 5:48 am
Jayant,
at version 7 it is not possible to change a job's parameter values from before-job code.
In order to do what the poster wishes to do, the parameter file needs to be read as part of one job or sequence, the parameter values separated out and then the actual job called with these parameters.
at version 7 it is not possible to change a job's parameter values from before-job code.
In order to do what the poster wishes to do, the parameter file needs to be read as part of one job or sequence, the parameter values separated out and then the actual job called with these parameters.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- 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:
Kumar,
no reason to be confused - you cannot change a job's parameter values within the job itself.
no reason to be confused - you cannot change a job's parameter values within the job itself.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
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
-Kumar