In reply to Alex.

You need to specify the "body" of the summation as well as the language (DATA step? IML?). I think it would be easier to answer your questio if you ask it at the SAS Support Communities.
Ask DATA Step questions. or
Ask SAS/IML questions.