query based on conditon???

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

ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

error
Copy_of_DB2_UDB_Enterprise_48: DB2 Error: The Orchestrate update field `column` is not an Orchestrate insert field.
query:

Code: Select all

Update query:

UPDATE 
schema.tablename
SET 
FLAG = 'N',
expr_date = ORCHESTRATE.EXPR_DATE
WHERE 
(COL1=ORCHESTRATE.COL1 and FLAG = 'Y')

insert query:

INSERT 
INTO 
schema.tablename
(FLAG,expr_date) 
VALUES 
('Y', '9999-12-31-00:00:00:0' )
Incase, If i remove the word Orchestrate the job works fine but the row is not being updated.
could you please suggest me know what could be the solution for this???
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

ahmedwaseem2000 wrote:...the job works fine but the row is not being updated...
On what basis does "the job work fine?" :roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ahmedwaseem2000
Premium Member
Premium Member
Posts: 145
Joined: Fri Sep 15, 2006 12:23 pm

Post by ahmedwaseem2000 »

I meant the job runs fine without error but doesnt update it. and with orchestrate it gives me the error
swades
Premium Member
Premium Member
Posts: 323
Joined: Mon Dec 04, 2006 11:52 pm

Post by swades »

Did only Update works ?

AND

Only insert works ?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

As Ray advised before, send in a link with only inserts, and a reject link coming out of it going to another stage with updates.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply