I'm trying to do something which should be simple but am having problems with, basically using the underneath table I need to sum my 'unitts' field so it will give me a sum by polref inrref covref funds so obs 5 will show '249.57'.
PROC MEANS, PROC PRINT, with by statements work but I need the same type of format as below not subtotals, I've not had success with PROC SUMMARY.
Anyone have any suggestions??
Obs polref inrref covref funds unitts
1 91511753 1 1 640 1146.65
2 91511753 2 1 640 1433.36
3 91574053 1 1 637 63.58
4 91574053 1 1 641 -0.65
5 91574053 1 1 641 250.22
6 91574053 2 1 637 63.58
7 91574053 2 1 641 -0.65
8 91574053 2 1 641 250.22
9 91628753 1 1 628 297.65
10 91628753 2 1 628 148.83
PROC MEANS, PROC PRINT, with by statements work but I need the same type of format as below not subtotals, I've not had success with PROC SUMMARY.
Anyone have any suggestions??
Obs polref inrref covref funds unitts
1 91511753 1 1 640 1146.65
2 91511753 2 1 640 1433.36
3 91574053 1 1 637 63.58
4 91574053 1 1 641 -0.65
5 91574053 1 1 641 250.22
6 91574053 2 1 637 63.58
7 91574053 2 1 641 -0.65
8 91574053 2 1 641 250.22
9 91628753 1 1 628 297.65
10 91628753 2 1 628 148.83