assing values

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
IBMDS
Participant
Posts: 20
Joined: Thu Nov 09, 2006 1:58 pm

assing values

Post by IBMDS »

how to assign '1' for minimum line number and all the remaining line numbers to '0'.

I have to derive the column 3 based on the column1 and column2

Column1 column2 column3
100 1 1
100 2 0
100 3 0
100 4 0


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

Post by ray.wurlod »

Sort the data by Column 1 and Column 2 and have the Sort stage generate a key change column into Column 3.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Ray, I am not sure I would of answered this based on the topic.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Apparently it was from IBM (short for IBMDS).
: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