How I can update primary key of table in Datastage jobs.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
anshumangupta1206
Participant
Posts: 42
Joined: Tue Jan 24, 2006 9:11 am

How I can update primary key of table in Datastage jobs.

Post by anshumangupta1206 »

Hi All,
I am using SYBASE as the database. I want to update the primary key of the table in Sybase OC stage. Actually the problem is, for a column I can pass the value once, so how can I pass the old and new value for primary key.
I am trying using use-defined SQl and passing two different values, but it is not working.
Please suggest some other ways to do this.
wed
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Trick it. Make the key column in your design the one that will appear in the WHERE clause, and mark the one that will appear in the SET clause non-key. :wink:
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