SEQUENCE NUMBER GENERATION FUNCTION

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
babuselvan
Participant
Posts: 22
Joined: Mon Nov 02, 2009 6:02 pm
Location: chennai

SEQUENCE NUMBER GENERATION FUNCTION

Post by babuselvan »

We want to generate sequence for a set of records. What is the available function to generate a sequence number for a set of record in the datastage?
mgendy
Premium Member
Premium Member
Posts: 44
Joined: Thu Sep 10, 2009 5:30 am
Contact:

You Can Use Surrogate Key Generator

Post by mgendy »

You Can Use Surrogate Key Generator , either in sequential mode , or in parallel mode using round robin partitioning method
Mohmmed Elgendy
Senior System Analyst
Data IntegrationTeam
Etisalat Egypt
+20 1118511161
babuselvan
Participant
Posts: 22
Joined: Mon Nov 02, 2009 6:02 pm
Location: chennai

SEQUENCE NUMBER

Post by babuselvan »

Can we have that surrogate key genertor function in server job mode?
mgendy
Premium Member
Premium Member
Posts: 44
Joined: Thu Sep 10, 2009 5:30 am
Contact:

Re: SEQUENCE NUMBER

Post by mgendy »

babuselvan wrote:Can we have that surrogate key genertor function in server job mode?
no , you can't use this stage in server jobs
Mohmmed Elgendy
Senior System Analyst
Data IntegrationTeam
Etisalat Egypt
+20 1118511161
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

you can use KeyMgtGetNextValue function
Birendra
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or the @INROWNUM / @OUTROWNUM system variables. Or sequence objects in your database. Or...
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply