![Aborting a SAS/IML program upon encountering an error](https://blogs.sas.com/content/iml/files/2017/01/AdvancedAnalytics-1.png)
A colleague sent me an interesting question: What is the best way to abort a SAS/IML program? For example, you might want to abort a program if the data is singular or does not contain a sufficient number of observations or variables. As a first attempt would be to try