Running flows in a job in sequential order

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rcdhawan
Participant
Posts: 15
Joined: Wed Sep 12, 2007 7:04 pm

Running flows in a job in sequential order

Post by rcdhawan »

I have three flows in a job:

1) MQ1->Transformer1->Sequential file1
2) MQ2->Transformer2->Sequential file2
3) MQ3->Transformer2->Sequential file3

My requirement is run 1), 2) and 3) in the sequential order. Run 1) and go to 2) only if 1) finishes and go to 3), only when 1) and 2) finishes. If they fail in the order, the job should fail altogether.

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

Post by chulett »

Three jobs, run in a serial fashion via a Sequence job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rcdhawan
Participant
Posts: 15
Joined: Wed Sep 12, 2007 7:04 pm

Post by rcdhawan »

We cannot specify the order in the designer at all?
chulett wrote:Three jobs, run in a serial fashion via a Sequence job. ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not unless you can establish some kind of process break between them and thus link them together in one 'stream'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rcdhawan
Participant
Posts: 15
Joined: Wed Sep 12, 2007 7:04 pm

Post by rcdhawan »

Can you please shed more light on this and 'stream'?
chulett wrote:Not unless you can establish some kind of process break between them and thus link them together in one 'stream'. ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Basically, this:

Code: Select all

MQ1->Transformer1->SequentialFile1->MQ2->Transformer2->SequentialFile2->MQ3->Transformer3->SequentialFile3 
Perhaps read from a known empty file so that nothing is written to MQ but rather just serves as a process break...

Still think they should be three separate jobs, control the order and what happens when any given one fails by using a Sequence job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply