Strengthen your programming skills with tips and techniques from the experts
![Matrix operations and BY groups](https://blogs.sas.com/content/iml/files/2019/04/ByGroupSim2-640x336.png)
Many SAS procedures support the BY statement, which enables you to perform an analysis for subgroups of the data set. Although the SAS/IML language does not have a built-in "BY statement," there are various techniques that enable you to perform a BY-group analysis. The two I use most often are