Passing parameteres through Unix Script

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Madhav_M
Participant
Posts: 43
Joined: Sat Jul 10, 2004 5:47 am

Passing parameteres through Unix Script

Post 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.
afssekar
Participant
Posts: 11
Joined: Fri Apr 23, 2004 10:24 am
Location: chennai

Post by afssekar »

Please write Job routine.
pravesh_kushwaha
Participant
Posts: 19
Joined: Fri Sep 10, 2004 12:17 am
Location: India
Contact:

Use dsjob command to run DataStage Jobs Through Unix

Post 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
Thanks And Regards,
Pravesh Singh Kushwaha.
Software Engineer,
Infosys Technologies Ltd., Pune.
Madhav_M
Participant
Posts: 43
Joined: Sat Jul 10, 2004 5:47 am

Post 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:
dsxdev
Participant
Posts: 92
Joined: Mon Sep 20, 2004 8:37 am

Post 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.
Happy DataStaging
Post Reply