In reply to Raphael Chaves.

Thanks for writing. If you need help writing SAS programs, post your questions to the SAS Support Communities. Include the program that you've written so far. Point out which lines in the program are giving errors or the wrong answers.