Setting order of execution of two different flow in a single

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
shaonli
Participant
Posts: 80
Joined: Tue Nov 28, 2006 6:52 am

Setting order of execution of two different flow in a single

Post by shaonli »

There is two different flow in a single job.
One flow is populating to the parent table.
Second flow is populating to the child table.

I want to execute the parent flow first and then the child flow.

src->tfm->parent table
scr->tfm->child table

Please suggest.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If they are independant in the job then you cannot control the execution order. If you need to do so, split the logic into 2 jobs and call them from a job sequence.
Abu@0403
Participant
Posts: 32
Joined: Wed Aug 08, 2007 11:21 pm

Re: Setting order of execution of two different flow in a si

Post by Abu@0403 »

shaonli wrote:There is two different flow in a single job.
One flow is populating to the parent table.
Second flow is populating to the child table.

I want to execute the parent flow first and then the child flow.

src->tfm->parent table
scr->tfm->child table

Please suggest.
If you can change the job, then do this way.

src->tfm->parent table-->tfm-->scr->tfm->child table

Just do not pass anything in the transformer marked in red.
But this is not a good way of coding.
----------------
Abu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then don't suggest it. :wink:

Two jobs, run in the proper RI order by a Sequence job or using whatever you've got for job control there.
-craig

"You can never have too many knives" -- Logan Nine Fingers
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Post by gateleys »

I would not try anything funky, but just go with 2 jobs, as Arnd suggested.
gateleys
Abu@0403
Participant
Posts: 32
Joined: Wed Aug 08, 2007 11:21 pm

Post by Abu@0403 »

I agree that its not a good way.

But the requirement he specified is that he needs to do that in a single job.

If sequencer is to be used then the job should be split into two.

So I could'nt get any other solution other than trying this one. If what I have mentioned is a very bad suggetion, then please excuse me.
----------------
Abu
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea:
Always push back on illogical requirements.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply