ORCHESTRATE

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
developeretl
Participant
Posts: 89
Joined: Sat Jul 24, 2010 11:33 pm

ORCHESTRATE

Post by developeretl »

Hi Im trying to update the table in the database.
From source i have one column and i need to update the target database based on the update statement. correct me if my statement is wrong.

update table
set col3=1234
col1=orchestrate.col1
col2=orchestrate.col2
in col3('1','2')

ERROR :DB2_Connector_1: Error when checking operator: Could not find input field "col1".
Error when checking operator: Could not find input field "col2".

Can you help me with this
dsuser_cai
Premium Member
Premium Member
Posts: 151
Joined: Fri Feb 13, 2009 4:19 pm

Post by dsuser_cai »

I assueme DB2 as database.
I dont see a "Where" Clause in your statement.
Thanks
Karthick
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

update table
set col3=1234
col1=orchestrate.col1
col2=orchestrate.col2
in col3('1','2')
is this the actual query?
should be something like :

update table <Table-name>
set col3=1234
WHERE col1=orchestrate.col1
AND col2=orchestrate.col2

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

Post by ray.wurlod »

What are the columns named in your DataStage job, and which (if any) of these are identified as "Key"?
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