Kick off job based on table entry

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
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Kick off job based on table entry

Post by vinaymanchinila »

Hi,
We have a scenario where we need to kick off a job if the job name is populated in a table, did any one had a smiliar situation,

basically a table is populated (clear and load) every day with job names, if the DS job name is present in the table that needs to be kicked off, we are using ControlM as the scheduling tool.

Thanks,
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

It should be achievable.
Get a list of your jobs into a file and pass it as a parameter to UtilityRunJob
Check this post
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
vinaymanchinila
Premium Member
Premium Member
Posts: 353
Joined: Wed Apr 06, 2005 8:45 am

Post by vinaymanchinila »

Hi,
If lets say there are 5 jobs that are required to be run but in a specific sequence, can we control that too, I am looking in to the UtilityRunJob, but trying to understand the design to in corporate the job dependencies.

Thanks !
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

UtilityRunJob() is just present in server i believe, not too sure, dont have access to DS right now so cannot validate that. Populate the table into a flat file, have a small shell script read that file line by line and pass the jobname to dsjob command. You can control this in a sequence job.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

vinaymanchinila wrote:Hi,
If lets say there are 5 jobs that are required to be run but in a specific sequence, can we control that too, I am looking in to the UtilityRunJob, but trying to understand the design to in corporate the job dependencies.

Thanks !
Yes it can be controlled. Depends upon what sequence fed to the UtilityRunJob().
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply