DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
Gius
Participant



Joined: 09 Mar 2015
Posts: 24

Points: 343

Post Posted: Tue Mar 19, 2019 6:36 pm Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Windows
Additional info: Order of Flow execution inside parallel job
Hello,
I have a parallel job and inside this parallel job I have 2 flows ( 2 sources and 2 target ).
Is it possible to do something like ;
# First run the first sources db2 and when it finish, run the 2d sources db2.
# If not then run the first flow, when it finish, run the 2d flow.

Right now I have 2 flows inside the parallel job, 2 sources with 2 target but I can merge the flows and like obtain 2 db2 sources and 1 target, in this case, is it possible to put an execution order to the db2 sources ?


# I don't want to create a second parallel job, ,I would like to do this inside 1 parallel job.
# All sources have the same output fields

Thank You -
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54501
Location: Sydney, Australia
Points: 295558

Post Posted: Tue Mar 19, 2019 10:58 pm Reply with quote    Back to top    

You can't do it within a single parallel job as you've designed it. You may be able to finagle something in the database, such as a stored procedure that executes one query then the next, but you ...

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
Rate this response:  
Not yet rated
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 42930
Location: Denver, CO
Points: 221405

Post Posted: Wed Mar 20, 2019 1:30 am Reply with quote    Back to top    

Yeah, not in this tool. Wink

Okay... sort of.. to clarify with a bit of revisionist history: That capability is not built into the tool as it is with at least one other that I'm now familiar with but can be accomplished with a bit of... shenanigans. As noted. Very Happy

_________________
-craig

The Old Ones were, the Old Ones are, and the Old Ones shall be. Not in the spaces we know, but between them. They walk serene and primal, undimensioned and to us unseen.

Last edited by chulett on Thu Mar 21, 2019 12:32 am; edited 2 times in total
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54501
Location: Sydney, Australia
Points: 295558

Post Posted: Wed Mar 20, 2019 3:57 pm Reply with quote    Back to top    

Of course you can. Sort of. Add a constant to each query, maybe 'A' and 'B', then use a Sort Funnel to make sure that all the 'A' records go through before any of the 'B' records.

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54501
Location: Sydney, Australia
Points: 295558

Post Posted: Wed Mar 20, 2019 3:58 pm Reply with quote    Back to top    

ray.wurlod wrote:
Of course you can. Sort of. Add a constant to each query, maybe 'A' and 'B', then use a Sort Funnel to make sure that all the 'A' records go through before any of the 'B' records.

If you don't want to alter the queries, use a Column Generator stage.

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours