Open command in ODBC stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vcsasikala
Participant
Posts: 26
Joined: Wed Jun 20, 2007 1:13 am
Location: Chennai

Open command in ODBC stage

Post by vcsasikala »

Hi,
Will the Query in open command of ODBC stage run once in a parallel job with 4 nodes?

or

Will it run once for each node?
Regards,

Sasikala V C
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is the stage running in sequential mode or in parallel mode?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vcsasikala
Participant
Posts: 26
Joined: Wed Jun 20, 2007 1:13 am
Location: Chennai

Post by vcsasikala »

in parallel mode.

Actually we need to truncate the table before loading. Since we are using lower version of DB2, We are using delete from table tabe_name in open command of ODBC stage which runs in parallel mode. if the delte command tries to delete the same record in each node the table will get locked.

thats where the question raises. Will the open command run once in a job execution or once for each node?
Regards,

Sasikala V C
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Once for each node if the stage is running in parallel mode.
-craig

"You can never have too many knives" -- Logan Nine Fingers
cooperjv
Premium Member
Premium Member
Posts: 29
Joined: Thu May 13, 2004 3:18 pm

Post by cooperjv »

The default execution mode of the ODBC stage is sequential and this cannot be changed.

So the open command will be executed only once
Post Reply