Update one column value and insert source row to a table

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
JaisonJ
Premium Member
Premium Member
Posts: 16
Joined: Mon Jun 11, 2012 1:02 am
Location: Doha

Update one column value and insert source row to a table

Post by JaisonJ »

I need to update existing rows in a table to set a column value to somevalue if there is atlest one row in source file and after update, I need to insert (append) the source file rows to that table.

Is this can be done in one datastage job.

Please advise.
JJ
dsetlteam
Premium Member
Premium Member
Posts: 35
Joined: Mon Feb 10, 2014 10:14 pm
Location: USA

Post by dsetlteam »

You can take count of records from the source file and use a filter stage to determine if the count is 1 or greater than 1, in such a case update the data in the table and in the after SQL , insert the file data into the table
Post Reply