06-27-2013 08:00 AM
What are you trying to achieve? Proc sort just sort the data by the by groups listed. Class statements are usually on the stat procedures for reporting purposes.
So the short answer is no. But I imagine that doesnt solve your real question.
REFERENCE SAS DOCUMENTATION
06-27-2013 10:35 AM
If you mean to sort the data an have a subset of the data as a result use the where clause on the data:
proc sort data= mydataset(where=(ThisVariable in (value1, value2, value3)) out=SortedSubset; by variable1 variable2;run;