27 proc sort data = awards;
28 by descending fname points;
NOTE: There were 6 observations read from the data set WORK.AWARDS.
NOTE: The data set WORK.AWARDS has 6 observations and 2 variables.
NOTE: PROCEDURE SORT used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
The sort procedure orders the observations in the SAS dataset by the values of one or more character or numeric variables. The sort procedure either replaces the original data set or creates a new data set. As the statement by descending fname points; is used, the dataset WORK.AWARDS is sorted first by variable fname in descending order, then by variable points in ascending order.
The following is the newly sorted version of WORK.AWARDS:
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.