Page 1 of 1

How to generate sequence number from transformer

Posted: Tue Oct 19, 2010 1:05 pm
by srinivas Guduru
Hi

I need to generate a unique sequence number for each row of ouput(starting from 1 and increment is 1). Is it possible, if yes can you please let me know the code in detail

Thank you
Srini

Posted: Tue Oct 19, 2010 1:10 pm
by vinothkumar
Do a search in this forum. This has been answered earlier.

Posted: Tue Oct 19, 2010 3:35 pm
by ray.wurlod
Actually probably not in this particular forum, which is devoted to WebSphere Transformation Extender (which used to be called DataStage TX, but which is no longer a part of DataStage).

Posted: Tue Jan 11, 2011 11:59 am
by wtx_dev
You can do 2 ways:

1. When you invoking the functional map pass INDEX($), this value will be incremented for every functional map call.

2. Use GETANDSET() function.

Thanks