Generate the sequence number

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
ntr
Participant
Posts: 110
Joined: Fri Dec 18, 2009 10:30 am
Location: pune

Generate the sequence number

Post by ntr »

Hi to all,
I strucked to generate the sequence number can any one help on this

My input Column
A
-----
3
Having value 3.
I want o/p
B
--------
4
5
I want to incrrease the number from input coumn A to Target column B.
With out using the oracle sequencer.
Can any one?


Thanks & regards
austin_316
Participant
Posts: 80
Joined: Fri Aug 21, 2009 7:49 am
Location: India

Generate the sequence number

Post by austin_316 »

how many sequence numbers do you want to generate from the input column??
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What triggers the generation of the sequence number? If it's every row, just add @INROWNUM to the starting value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ntr
Participant
Posts: 110
Joined: Fri Dec 18, 2009 10:30 am
Location: pune

Post by ntr »

HI ,
Thanks
I got the solution by using @INROWNUM.

Thanks & regards,
Post Reply