Chapter 9: Proc Print Syntax
PROC PRINT <option(s)>;
BY <DESCENDING> variable-1 <...<DESCENDING> variable-n> <NOTSORTED>; PAGEBY BY-variable; SUMBY BY-variable; ID variable(s); SUM variable(s); VAR variable(s);
See OnLine documentation for details.