Running Job Sequence within a Job Sequence

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
cdrk823
Participant
Posts: 39
Joined: Wed Apr 20, 2005 8:18 am

Running Job Sequence within a Job Sequence

Post by cdrk823 »

Hi everyone,

I know that these questions might be somewhere within this forum and I'm simply not using the right keywords to search, but here it goes anyway:

Is there a way to run a job sequence within a job sequence? The only thing I can think of now is to run it through a command activity via dsjob.

Is this advisable?

Would this affect performance?

If that sub-job sequence fails, would the main job sequence fail as well?

How would restarting the job work in this case?

Would restarting-completing the sub-job sequence then restarting the main job sequence from the breakpoint work?

Thanks in advance!

- cedrick
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

A Sequencer is just another DataStage job, so you run them via the Job Activity stage like any other.

You have to propogate your sub-sequencer errors up to the parent sequencer via one of the 'Utility' routines - UtilityWarnToLog for instance - when any job in a sub-sequencer fails. The warning or failure in the sub-seqeunce itself can be noticed by the parent sequencer via Triggers.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cdrk823
Participant
Posts: 39
Joined: Wed Apr 20, 2005 8:18 am

Post by cdrk823 »

sweet! I never thought of it that way. Thanks Craig!!
Post Reply