Sequence number Generation

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
Vino_joe84
Participant
Posts: 28
Joined: Mon Nov 06, 2006 5:44 am
Location: chennai

Sequence number Generation

Post by Vino_joe84 »

Hi,

We need to create a number sequentially.
For ex. today my job ends with 1000 then tomorrow if i run the job it should start 1001.

How to achieve this in DS?

Do we have any stage to implement this?
J.Ithayavino
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

At version 8 you can now generate such sequential numbers directly in the Transform stage. Look into the details tab "Surrogate Key" of the transform stage in the designer.
ramesh_inform
Participant
Posts: 57
Joined: Mon Dec 03, 2007 12:43 am
Location: hyderabad

Post by ramesh_inform »

use surrogate key generator and parametrize the key value
pass the key value as parameter
run a script that takes the value
ramesh.n.
Post Reply