ods
html5
style=daisy
path="c:\0_SAS_1"
file="Long, Importance.htm";
proc sort data=sas_1.importance_long;
by Indicator;
run;
proc freq data=sas_1.importance_long;
tables Importance;
by Indicator;
run;
Please see above code.
In the tables which result from this Proc Freq, in the final row of each table, in the Cumulative Frequency column, one can find the TOTAL value for the specific BY Variable.
Presently I am interested in ONLY those TOTAL amounts.
Is there a more direct way?
Want just the TOTAL.
In the above pic, all I want is the Specific Indicator and the 161.
Any help greatly appreciated.
Nicholas Kormanik
How about:
proc sql;
select Indicator, count(1) as total
from sas_1.importance_long
group by Indicator
;
quit;
?
Bart
How about:
proc sql;
select Indicator, count(1) as total
from sas_1.importance_long
group by Indicator
;
quit;
?
Bart
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.