Surrogate key generator stage in datastage 8.1

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
prashanth.spl
Participant
Posts: 23
Joined: Mon Jan 14, 2008 6:09 am

Surrogate key generator stage in datastage 8.1

Post by prashanth.spl »

Hi,

I am trying to use Surrogate Key generator stage using Flat file in Datastage 8.1. When i am generating for 10 records, first time values are coming as 1 to 10. Next time it is genrating as 1001 to 1010...next 2001 to 2010 next 3001 to 3010 .....

I am running the job in 4 node configuration.

How can i achive the sequential values? like 1 to 10 ... 11 to 20 next 21 to 30 .
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What settings have you specified in the stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prashanth.spl
Participant
Posts: 23
Joined: Mon Jan 14, 2008 6:09 am

Post by prashanth.spl »

Hi,

I have used the following options:

File Block size: System Picked

Generate Key from Last Value: No ( I tried Yes Also ..No difference)

Execution mode: Sequential
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't have any docs access right now... what other options are there for File Block Size besides 'system picked'? And there's nothing like a "cache" option?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nitkuar
Participant
Posts: 46
Joined: Mon Jun 23, 2008 3:09 am

Post by nitkuar »

extract from designer guide:
To control the block size for key ranges, add the File Block Size property to the Options group, set this property to User specified, and specify a value for the block size
Post Reply