62 proc sort data = qtr1_revenue;
63 by destination descending revenue;
NOTE: There were 5 observations read from the data set WORK.QTR1_REVENUE.
NOTE: The data set WORK.QTR1_REVENUE has 5 observations and 2 variables.
NOTE: PROCEDURE SORT used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
The sort procedure orders the observations in a 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. By default, PROC SORT sorts the data in ascending order. Here, the statement by destination descending revenue; is used. This means that the dataset WORK.QTR1_REVENUE is sorted first by variable destination in ascending order then variable revenue in descending order.
The following is the newly sorted dataset WORK.QTR1_REVENUE:
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.