In reply to kaushal.

Read the next blog post: "Compute a moving average in SAS." At the end of the post is a discussion of options that use Base SAS.