hi i have a column
name count
a 1
b 0
c 0
d 1
e 1
i want to arrive at sum= 3, which counts the 1s.
thank you!
PROC SUMMARY
RTM.
data have;
input name $ count;
datalines;
a 1
b 0
c 0
d 1
e 1
;
proc tabulate data=have;
var count;
table count,sum;
run;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.