Hi all,
I have some unix variables and want to set that variables as a parmeters to another job.
a) I want to know how to call a job from Unix and set the parameters... to that job.
b) Can I recursively call the same job with different parameters..
Hoping ur extensive help in this issue.
Thanks in Advance
Madhav.
Passing parameteres through Unix Script
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 19
- Joined: Fri Sep 10, 2004 12:17 am
- Location: India
- Contact:
Use dsjob command to run DataStage Jobs Through Unix
Consider the Example below.
${DSHOME}/bin/dsjob -run -param "OUTPUT_DIR=${STAGE_DIR}" -warn "nolimits" -jobstatus ${DS_PROJ} TASMparamBegDttm
Here ${STAGE_DIR} -> is unix variable
TASMparamBegDttm -> Job Name
${DS_PROJ} -> Project Name again a variable
${DSHOME}/bin/dsjob -run -param "OUTPUT_DIR=${STAGE_DIR}" -warn "nolimits" -jobstatus ${DS_PROJ} TASMparamBegDttm
Here ${STAGE_DIR} -> is unix variable
TASMparamBegDttm -> Job Name
${DS_PROJ} -> Project Name again a variable
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
Hi Madhav,
This is very much possible if you see teh command dsjob you have an option -param wher you specify the parameter value.
so if you can build the command like
dsjob -run <server> <project> -param <value> -param <value> ....
This can be achieved through Unix script.
Once you build the command then execute teh command.
This is very much possible if you see teh command dsjob you have an option -param wher you specify the parameter value.
so if you can build the command like
dsjob -run <server> <project> -param <value> -param <value> ....
This can be achieved through Unix script.
Once you build the command then execute teh command.
Happy DataStaging