In reply to Divya Jyothi.

Happy to help. Post your question to the SAS Support Communities, and you will get multiple responses showing different ways. My favorite is use PROC UNIVARIATE, but you can also use PROC SQL or the DATA step. If you have a preference, mention it when you post your questions.