This looks very much like an excercise using sashelp.class.
So why don't you first give it a go and then come back here with some code explaining us where you've go stuck.
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!