How can we capture change in one column value

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
gauravpec
Participant
Posts: 1
Joined: Thu Mar 01, 2007 3:54 am

How can we capture change in one column value

Post by gauravpec »

Hi we have a column first_name and we want a column index that will be generated once the value in first_name is changed . How can we perform this thanks a lots :?:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome!

That's not alot of information to work on. Typically, in a Server job, existing values of a field would be loaded into a Hashed File and then a reference lookup would be used to determine if the value was being changed.

Does that help?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use stage variables to detect when last_name and first_name change. Use those to trigger updates to the "change has occurred" column (which you have referred to as a "column index").
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