This is an old paper :
SAS Global Forum 2013 -- Pharma and Health Care
Paper 166-2013
Identifying and Addressing Post-Marketing Pharmaceutical Safety Surveillance and Spontaneous Reported Events
Carrie Boorse, Stuart Levine, and Kathy Schaan
SAS Institute Inc., Cary, NC
https://support.sas.com/resources/papers/proceedings13/166-2013.pdf
There might be a more recent solution in SAS Viya.
Koen