The SUM statement totals the COST variable for all observations in each calendar.
   sum cost / format=dollar10.2;