Page 1 of 1

Passing parameteres through Unix Script

Posted: Mon Sep 13, 2004 3:03 am
by Madhav_M
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.

Posted: Mon Sep 13, 2004 3:31 am
by afssekar
Please write Job routine.

Use dsjob command to run DataStage Jobs Through Unix

Posted: Mon Sep 13, 2004 5:36 am
by pravesh_kushwaha
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

Posted: Tue May 17, 2005 10:11 pm
by Madhav_M
Hi
Can we have list of parameters in a file
and pass the file as a parametere to this routine?

It would help me to have a centralised file and change the list of parameters as when required :lol:

Posted: Wed May 25, 2005 6:22 am
by dsxdev
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.