Sorted output Sequential File

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
rroy2
Participant
Posts: 21
Joined: Thu Jan 03, 2008 4:16 pm

Sorted output Sequential File

Post by rroy2 »

Hi,

I have a parallel job which generates output in an Sequential File with fileds say A, B, C and D

The volume in the file can go upto 1 million.

I need the data to be sorted on C and D when the file is created by the job.

Will selecting the SORT MERGE option in the Partitioning tab of File stage, and selecting C and D in sort fields, ensure that all 1 million records are sorted on C and D.

OR do I need to do something extra to ensure this (like using some setting, placing any stage before the file stage etc)

Please suggest.

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Sort/Merge collector only works if the data are already sorted on those keyse upstream of the Sequential stage. If this is not the case, you need to add sorting to the input stream of the Sequential stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply