What's so bad about these procedures that you can't use them?
Why do you need to reinvent the wheel? What is inadequate about the existing wheel?
Then you have to use PROC IML .
Calling @Rick_SAS
This is an older answer that may get you started.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.