![Compute maximum and minimum values for rows and columns in SAS Compute minimum and maximum of rows and columns in SAS](https://blogs.sas.com/content/iml/files/2014/12/t_minmax4.png)
A common question on SAS discussion forums is how to compute the minimum and maximum values across several variables. It is easy to compute statistics across rows by using the DATA step. This article shows how to compute the minimum and maximum values for each observation (across variables) and, for