To generate sequence number to the ouput rows

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
ksv2584
Participant
Posts: 16
Joined: Wed Nov 10, 2010 6:10 am

To generate sequence number to the ouput rows

Post by ksv2584 »

Please let me know the best way to generate the sequence number(1,2,3, ...9999) to the output rows
boppanakrishna
Participant
Posts: 106
Joined: Thu Jul 27, 2006 10:05 pm
Location: Mumbai

Re: To generate sequence number to the ouput rows

Post by boppanakrishna »

You can use transformer stage to genetate the sequence.
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

The Surrogate Key Generator and Transformer stages are both capable of being used to general sequence numbers. How to use them to do so has been covered many times in this forum so a quick search should point you towards many examples.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Depends what the producer stage for the output rows is. If it's a Transformer, use that. Otherwise use a Column Generator or Surrogate Key Generator stage.
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