Posted: Thu Sep 09, 2010 2:05 pm
Can you try with this
( (@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1)
( (@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1)
Thanks Vinoth! But no luck with this as well. When I use this, The sequence number starts with 1 but gives a count of 177. Actual is 175. I will try with some other set of records and let you know.vinothkumar wrote:Can you try with this
( (@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1)
Thanks Anbu. My source is most of the time is an EBCDIC file or a Dataset.anbu wrote:If your input is sequential file, then you can set Row Number column option in Properties to get the sequential number.
I just tried this by keeping a sequential file as a source. But the sequence number starts with 0 for every partition.anbu wrote:If your input is sequential file, then you can set Row Number column option in Properties to get the sequential number.
Yes Row number starts with zero. But How do you get different partition in sequential file?arunkumarmm wrote:I just tried this by keeping a sequential file as a source. But the sequence number starts with 0 for every partition.anbu wrote:If your input is sequential file, then you can set Row Number column option in Properties to get the sequential number.
Your count and actual matches only if you have equal number of rows in all the partitionsarunkumarmm wrote:Thanks Vinoth! But no luck with this as well. When I use this, The sequence number starts with 1 but gives a count of 177. Actual is 175. I will try with some other set of records and let you know.vinothkumar wrote:Can you try with this
( (@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1)
I'm not sure about this. But I have 4 partitions and I get 4 different sequence numbers starting from 0anbu wrote:Yes Row number starts with zero. But How do you get different partition in sequential file?arunkumarmm wrote:I just tried this by keeping a sequential file as a source. But the sequence number starts with 0 for every partition.anbu wrote:If your input is sequential file, then you can set Row Number column option in Properties to get the sequential number.
I just have a test file created by me. It doesnt have the header or a trailer.FranklinE wrote:Does your input file have a header record or column headers in the first sequential record? That might be why your maximum row number is greater than the number of data records. That's a guess, because when the documentation says "column header records are ignored during processing" it doesn't go into detail for this situation.
Yes. I got it now. This is the reason! Thanks Anbu. But is there a way to over come this?anbu wrote:Your count and actual matches only if you have equal number of rows in all the partitionsarunkumarmm wrote:Thanks Vinoth! But no luck with this as well. When I use this, The sequence number starts with 1 but gives a count of 177. Actual is 175. I will try with some other set of records and let you know.vinothkumar wrote:Can you try with this
( (@INROWNUM - 1) * @NUMPARTITIONS + @PARTITIONNUM + 1)
Seriously?Run the parallel transformer in sequential way and use @INROWNUM
I have done it in the past successfully with low volume of the data.mhester wrote: Seriously?