SASUnit is the best (only?) tool for ensuring quality of SAS code. It is a little hands on to set up, but a lot of that is the nature of the SAS environment - even a widely used tool like Junit can give you trouble.