Batch job hangs

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ewartpm
Participant
Posts: 97
Joined: Wed Jun 25, 2003 2:15 am
Location: South Africa
Contact:

Batch job hangs

Post by ewartpm »

I have a Control job which executes several other jobs. When the jobs are run individually, they execute without any problems. However, when the control job executes those same jobs, some of them go into a 'running' state and don't process anything. The problem is that the control job has a 'wait for job to end' before executing the next job. This means I now sit with 2 jobs in a 'running' state.

Does anyone have any idea why this happens? What am I missing?

Thanks.
Mark Ewart-Phipps
Centerfield Software (Pty) Ltd
Tel +27 11 462 7003
Fax +27 11 462 7392
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not without inspecting the actual jobs.
Try - just as an experiment - a control job that doesn't use DSWaitForJob but, instead, a "busy wait" periodically inspecting the status of each running job (until job status <> DSJS.RUNNING) and sleeping for a short interval. It might also occasionally interrogate a link row count.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mark

The wait for job should all be moved to after the the last job you want to run at the same time.

run job1
run job2
run job3
wait job1
wait job2
wait job3
run job4
wait job4

This will run jobs 1,2 and 3 at the same time then wait for all 3 to finish before running job4. Batch jobs were designed as templates. You need to move the generated code around to get it to do it in the order you want.

Kim.
Mamu Kim
Post Reply