DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
srinivas Guduru



Group memberships:
Premium Members

Joined: 29 Dec 2007
Posts: 38

Points: 400

Post Posted: Tue Oct 19, 2010 1:05 pm Reply with quote    Back to top    

DataStage® Release: 7x
Job Type: Parallel
OS: Unix
Additional info: unique sequence number for output rows from tranxformer
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
vinothkumar
Participant

Group memberships:
Heartland Usergroup

Joined: 04 Nov 2008
Posts: 341
Location: Chennai, India
Points: 1599

Post Posted: Tue Oct 19, 2010 1:10 pm Reply with quote    Back to top    

Do a search in this forum. This has been answered earlier.
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54479
Location: Sydney, Australia
Points: 295436

Post Posted: Tue Oct 19, 2010 3:35 pm Reply with quote    Back to top    

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).

_________________
RXP Services Ltd
Melbourne | Canberra | Sydney | Hong Kong | Hobart | Brisbane
Rate this response:  
Not yet rated
wtx_dev
Participant



Joined: 18 Jul 2007
Posts: 10

Points: 75

Post Posted: Tue Jan 11, 2011 11:59 am Reply with quote    Back to top    

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
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours