Problem for sorting based on two columns

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
bharatmajeti
Participant
Posts: 13
Joined: Mon Feb 18, 2008 7:28 am

Problem for sorting based on two columns

Post by bharatmajeti »

Hi,
I want to sort my data based on two columns namely "snumber" and "sdigit".

I tried by giving the following options in sort specification

1) snumber, sdigit asc
2) snumber asc, sdigit asc
3) snumber asc [, sdigit asc]

but none of the above trails worked, and i am getting " Internal Error: sort specification error, " can anybody help me
Nothing but something
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Option (2) looks like the correct way to do it. What happens if you use just one sort key (try both columns separately); does it work without an error or do you also get an error?
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Make sure that the column names you specified in the source is same as that of sort stage .
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Option 2 is a correct sort specification. provided that the input column names are correctly spelled and cased.
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