Page 1 of 1

Sequence numbers are generating in native

Posted: Thu May 06, 2010 5:59 am
by kiranh_1214
Hi All

I have job in Production which will compare the previous day and current day files in CDC stage then generating sequence numbers in transfer stage (running in sequence mode ) for every new record.

Transformer logic. if lnklkptotfp.change_code =1 then @NUMPARTITIONS+svCntr else svCntr

Now the job is generating negative numbers
Can you please suggest what could be the issue

Thanks,

Posted: Thu May 06, 2010 6:02 am
by kumar_s
What is the derivation of svCntr?

Posted: Thu May 06, 2010 6:11 am
by kiranh_1214
Every time i am passing MAX(Val) from the target table.

Posted: Thu May 06, 2010 6:34 am
by kumar_s
What is the datatype and intial value for the stage variable svCntr.
Could be a reason that, garbale value is going due to data type mismatch?
Did you check the Target table? No chance of getting negative value as the Max?
Is the Negative value going incremental or reverse?

Posted: Thu May 06, 2010 6:54 am
by priyadarshikunal
buffer overflow?
what are the values when you pass 0 to svCntr? also check the datatypes as mentioned by Kumar.

Posted: Thu May 06, 2010 7:06 am
by kiranh_1214
The dattype of svCntr is BigInt . I am passing initial values as 0.
and target DB2 table column as BigInt .