Page 1 of 1

Rowcount in Transformer

Posted: Wed Jul 04, 2007 1:12 pm
by bhags
Datastage Server Job (Version 8)
Table(in)----->Transformer---------->Sequential file (Out)

Need to determine the row number in the transformer.
In parallel job we can use @@INROWNUM system variable.I can reset the variable after reading 'n' number of rows and update the data with same set of entries consecutively in a parallel job.

Need to achieve the same logic in server job.Please guide

Posted: Wed Jul 04, 2007 1:15 pm
by ray.wurlod
Stage variable svRowCount. Initialize to 0. Derive as something like

Code: Select all

If Mod(@INROWNUM, #ResetCount#) = 0 Then 0 Else svRowCount + 1

Posted: Wed Jul 04, 2007 2:49 pm
by jguerrero
...just a simple correction

If Mod(@INROWNUM, #ResetCount#) = 0 Then 0 Else Mod(@INROWNUM, #ResetCount#)

:idea:

Posted: Wed Jul 04, 2007 2:50 pm
by jguerrero
...just a simple correction

If Mod(@INROWNUM, #ResetCount#) = 0 Then 0 Else Mod(@INROWNUM, #ResetCount#)

:idea: