原始sas dataset如下:每行是每天的日期和产品,现在要求每个月的产品统计
Obs dtime Product
1 01DEC2011 computer
2 02DEC2011 computer
3 06DEC2011 pen
4 15SEP2011 phone
5 20SEP2011 pen
6 21SEP2011 phone
汇总结果为:
dtime product num
DEC computer 2
DEC pen 1
SEP phone 2
SEP pen 1
求用sas程序如何实现。