Do you have a timestamp variable for each month? what does it look like ? such as '2000-01'? You could have numerous approaches. 1. For one, you could just do a double loop using data step, one for quarter and sum it up through all of your records. given you have multiple variables of interest, you may need an additional array loop to save your coding labor. 2. For two, depending on your timestamp variable, you could introduce quarter indicator using some format (such as QTRw.), and concatenate with year to make groups. After that, you can choose many procs, such as, proc summary, proc report, proc sql to accomplish your job. Regards, Haikuo Just Edited. More detail would be appreciated, preferably sample data, both have and want.
... View more