Open command

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
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Open command

Post by jpraveen »

Hi all

i want to update a table AZ_PMGProvXRef_Temp1 based on the below query

the Query is
Update AZ_PMGProvXRef_Temp1
Set
ProductID = 'CO'
where
ProductID = '3' or
productid = '0';

i want to do this in open command.
but open command cannot be used to commit(i had seen this in datastage developers guide), so how to commit the records in open command

can i put simply semi-colon ' ; ' or 'COMMIT;'
my database is SQL server-2005 and i am using ODBC stage and 2-node config file


Thanks in advance
Jaypee
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you given any thought to what will happen when this stage runs on two or more nodes?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi ray

i think open command can be used when insert array is processed. and it cannot be used for COMMIT. and it will run only one time on conductor node.
but my requirement is to update the table before loading into the same table and my source is user- defined SQL ,
suggest me if any changes should be made while coding?

Thx
Jaypee
Post Reply