![Two types of syntax for the SELECT-WHEN statement in SAS](https://blogs.sas.com/content/iml/files/2022/08/search-markus-winkler-unsplash-640x336.jpg)
The SELECT-WHEN statement in the SAS DATA step is an alternative to using a long sequence of IF-THEN/ELSE statements. Although logically equivalent to IF-THEN/ELSE statements, the SELECT-WHEN statement can be easier to read. This article discusses the two distinct ways to specify the SELECT-WHEN statement. You can use the first