How to Sort data from sequential file?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
taral
Participant
Posts: 16
Joined: Fri Mar 26, 2010 1:41 am

How to Sort data from sequential file?

Post by taral »

Sorting data from sequential file.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Ummm.. what is wrong with using a DataStage "Sort" Stage?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Trick interview "question".
Last edited by chulett on Fri Jun 18, 2010 6:47 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not a question at all.
:roll:
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 »

Better? :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I like Arnd's answer. If you have a third party sort utility, such as CoSort or SyncSort, then there's also scope for invoking that. If you have a UNIX emulator, such as MKS Toolkit, you could use a UNIX sort command as a filter command in the Sequential File stage itself. You could stick the data into a database table and retrieve them sorted. Lots of ways.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
taral
Participant
Posts: 16
Joined: Fri Mar 26, 2010 1:41 am

Post by taral »

Didi not find Sort stage in Datastage 7X server
taral
Participant
Posts: 16
Joined: Fri Mar 26, 2010 1:41 am

Post by taral »

Didi not find Sort stage in Datastage 7X server
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Taral,

that means you didn't look hard enough for it; it is part of the product and should be present.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is present. I just checked.

Indeed, the Sort stage has been in DataStage since version 1.0.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ETLJOB
Participant
Posts: 87
Joined: Thu May 01, 2008 1:15 pm
Location: INDIA

Post by ETLJOB »

May be it is not present in the Pallete.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is there, in the Processing folder. Both for server jobs and for parallel jobs. (And mainframe jobs, for what it's worth.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ETLJOB
Participant
Posts: 87
Joined: Thu May 01, 2008 1:15 pm
Location: INDIA

Post by ETLJOB »

ray.wurlod wrote:It is there, in the Processing folder. Both for server jobs and for parallel jobs. (And mainframe jobs, for what it's worth.) ...
I mean, the shortcut for the "Sort stage" may be not there (shortcut removed?) in the palette . If it is the case, then one can add it using the "Customize Palette" option.
Post Reply