Page 1 of 1

Sort stage with duplicate values in input

Posted: Fri Aug 04, 2006 3:31 am
by aaikat
I have a sequential file as Sort stage input containing data like :

empid
1
2
3
1
2
4
4

Now when I use the Sort stage on this input file with ascending empid (Allow Duplicate=True,all other options default), I get the following output

empid
3
1
1
2
2
4
4

which shows repeating values are sorted but non-repeating value('3') comes in wrong position.

Please explain this behaviour.

Posted: Fri Aug 04, 2006 3:42 am
by balajisr
what is your target?

Posted: Fri Aug 04, 2006 3:48 am
by aaikat
My target is a data set

Posted: Fri Aug 04, 2006 4:05 am
by balajisr
Dataset displays data from more than one partitions and the data is sorted within partitions in dataset.

Write the data to the sequential file and find out if there are any differences.

Posted: Fri Aug 04, 2006 4:13 am
by aaikat
yes...It is appearing correctly in sequential file..thanks