Search notes:

SAS: proc tabulate

proc tabulate data=tq84_data;
     var   val_1;
     table val_1; /* Just reports the sum of val_1 */
run;
Github repository about-SAS, path: /programming/proc/tabulate/table.sas

Classes vs variables

data tq84_data;
   input category$ val_1 val_2;
datalines;
foo  1   4
foo  2   3
bar  4   2
foo  3   1
bar 10   2
baz 19   3
baz 21   4
;

proc tabulate data=tq84_data;
     class  category;
     var    val_1 val_2;
     table (val_1 val_2) * (n mean="Average" std min max sum),  all;
run;
Github repository about-SAS, path: /programming/proc/tabulate/class-vs-variables.sas

See also

Example 01
proc report
SAS programming: proc

Index