There’s an example for PROC EXPAND here
https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52
Given the correct procedures you should should be able to google a lot of resources on the topic with sample code. Post what you’ve tried and we’re happy to help further.
... View more