Problem using Surrogate Key generator stage

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
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Problem using Surrogate Key generator stage

Post by mydsworld »

I am using a Surrogate Key generator stage with database sequence (TESTSCHEMA.TESTSEQ).

Row Gen -> Surr Key Gen -> Seq file

The sequence get exhuasted, but Seq file shows output surrogate key field generated with all 0 values. I dbout the data type is not correct (chosen as BigInt Unsigned).

Please advise.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What Source Type have you specified in this stage? If Flat File, have you initialized the state file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Can you check the sequence's currval.
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Post by mydsworld »

I have used database sequence in the surrogate key stage and able to get its value through NEXTVAL also.It seems the sequenec values are getting advanced but somehow the values are not written into target Seq file stage.
Post Reply