PROC SORT is one of the most frequently used procedure for data processing; Like any other sas proceduers SORT has got wide number of useful options.
Below is basic syntax with important options for PROC SORT.
SAS Code:
PROC SORT data = input_dataset out = output_dataset
NODUPKEY / NODUPREC <Other options like TAGSORT FORCE DUPOUT= >;
BY ASCENDING var1 DESCENDING var2...;
RUN;
Explanation of options: