Specifies how a data set is currently sorted.
Valid in: | DATA step and PROC steps |
Category: | Data Set Control |
indicates how the data is currently sorted.
names the variables and options that you use in a BY statement in a PROC SORT step.
names the collating sequence that is used for the sort. By default, the collating sequence is that of your operating environment. A slash (/) must precede the collating sequence.
removes any existing sort indicator.
Sort Information Sortedby var1 Validated NO Character Set ANSI
libname mylib 'SAS-library';
options yearcutoff=1926;
data mylib.orders(sortedby=priority
descending indate);
input priority 1. +1 indate date7.
+1 office $ code $;
format indate date7.;
datalines;
1 03may01 CH J8U
1 21mar01 LA M91
1 01dec00 FW L6R
1 27feb99 FW Q2A
2 15jan08 FW I9U
2 09jul99 CH P3Q
3 08apr10 CH H5T
3 31jan12 FW D2W
;