Get data in sequence

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Get data in sequence

Post by deesh »

Hi Friends,
Can any one help to me, how to get the data in sequence, below example will show the structure and give the idea.

EX:

1 000021158710
1 000021158720
1 000021158730
2 000021191310
2 000021191320
2 000021191330
3 000021191410
3 000021191420
3 000021191430
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You typically 'get the data in sequence' by sorting, would that not work for you here? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Whats your source and tareget?
As mentioned, Use sort stage or order by clause with both the the fields.
Not sure, if your question is about partiton.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

Post by deesh »

kumar_s wrote:Whats your source and tareget?
As mentioned, Use sort stage or order by clause with both the the fields.
Not sure, if your question is about partiton. ...
Thanks for your help, below one is the process,

1. Extract the data from ODBC
2.Use the Transformer for business logic (concatenate two names) other than concatenate, not using any logic in transformer. And give the 3 output links for funnel, in this each link. have to pass the data.
link 1 --> name10 JA10
link 2 --> name20 JA20
link 3 --> name30 JA30

3. Put the result in oracle stage

Note: extracted rows 20 and out put rows 60
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use ORDER BY in the extraction and use a Sort funnel to preserve the sorted order.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If the target is a database stage, there's generally no reason to sort the output data. Why do you think you need to do this? Or do you need to sort it before transforming it? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply