Provide example data and what the result should look like. There are enough potential definitions of "score" to cause some confusion.
And snippets from the middle of a procedure aren't terribly helpful either as many SAS procedures share common elements and we cannot even tell which one you may be using.