I cross verified with my colleague and your approach and output is right. I was confused with the percentage calculation. Thanks for your help in brief.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.