Running Server Routine In Parallel

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
Ankur_KapoorUK
Participant
Posts: 64
Joined: Fri Feb 05, 2010 5:29 am
Location: India, UK

Running Server Routine In Parallel

Post by Ankur_KapoorUK »

I have a requirement in which I want to run one Server Routine which will be called in Parallel in the Sequencer.

I was expecting this Routine to run in Parallel as scheduled through Sequencer. But it is running Sequentially one by one.

Any specific reason for this to happen. I have read somewhere in DSXChange itself that If we have Server Routine and its has a Return Code then it runs Sequentially.

If it does have Return Code then it can Concurrently. Can you throw more light on it as my Routine is having a Return Code.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Same issue as posted here by any chance?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Ankur_KapoorUK
Participant
Posts: 64
Joined: Fri Feb 05, 2010 5:29 am
Location: India, UK

Post by Ankur_KapoorUK »

Yes it is almost the same Issue. Can you please have help me in this ? I am not able to understand why it is happening?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First, draw us a picture of your Sequence job either with words or "ascii art" that lets us know the design. Make sure all of the trigger information is posted as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Ankur_KapoorUK
Participant
Posts: 64
Joined: Fri Feb 05, 2010 5:29 am
Location: India, UK

Post by Ankur_KapoorUK »

Sequencer has the 4 Routine Activity Defined in Parallel in Sequencer -

Routine Activity 1 --> Calling Sever Routine ABC for Table T1
Routine Activity 2 --> Calling Sever Routine ABC for Table T2
Routine Activity 3 --> Calling Sever Routine ABC for Table T3
Routine Activity 4 --> Calling Sever Routine ABC for Table T4

Server Routine ABC return a value. Ideally I was expecting that Sever Routine ABC will be called in Parallel for its corresponding tables.

Sever Routine ABC - Basically fire a SQL in Database.

But the Server Level Routine is running Routine ABC in Sequential Manner.
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Is it because a routine activity ( unlike a job activity) cannot be invoked as multiple instance ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A routine can be run by multiple processes at once. However, the sequence is only one process that executes the code on the Job Control tab in its job properties.

You could have it (the sequence) start multiple sub-sequences each invoking the routine. Sub-sequences are forked as child processes of the controlling sequence.
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