You can also create rolling averages by combining PROC SUMMARY with a MLFormat and also with the help of arrays in the DATA step. You can read more about these techniques in the book Carpenter’s Guide to Innovative SAS Techniques.