Sequence numbers are generating in native

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
kiranh_1214
Premium Member
Premium Member
Posts: 47
Joined: Tue Sep 13, 2005 4:28 am

Sequence numbers are generating in native

Post 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,
Kiran Kumar
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What is the derivation of svCntr?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kiranh_1214
Premium Member
Premium Member
Posts: 47
Joined: Tue Sep 13, 2005 4:28 am

Post by kiranh_1214 »

Every time i am passing MAX(Val) from the target table.
Kiran Kumar
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

buffer overflow?
what are the values when you pass 0 to svCntr? also check the datatypes as mentioned by Kumar.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
kiranh_1214
Premium Member
Premium Member
Posts: 47
Joined: Tue Sep 13, 2005 4:28 am

Post by kiranh_1214 »

The dattype of svCntr is BigInt . I am passing initial values as 0.
and target DB2 table column as BigInt .
Kiran Kumar
Post Reply