how to sort variable by character variable first then numeric variable

how to sort variable by character variable first then numeric variable

Post by Kare » Mon, 28 Apr 2008 01:00:23


Hi,

who knows if we can use SAS to sort the variables by character
variable first and then numeric variable.

Such as:
The original order is:
StudentID Score Gender Address

I want to sort it as

StudentID Gender Address Score

Any hint?

Thanks very much!
 
 
 

how to sort variable by character variable first then numeric variable

Post by Don » Mon, 28 Apr 2008 09:21:00


Check these sites for guidance on using proc sort and using proc sql.
Look for the by statement in proc sort and the order by statement in
proc sql.

Good Luck.
AB3BO
Don



http://www.yqcomputer.com/
http://www.yqcomputer.com/