GuptaProgramming@cs.com wrote:
Hi SAS Users,
I thought you might be interested in this tip I wrote for SAS. It is one
of many useful techniques in my latest book, Sharpening Your SAS Skills,
(www.crcpress.com).
SAS Programming Tip from SAS Certified Professional - Sunil Gupta
When do I use a WHERE statement versus an IF statement to subset a data
set?
When programming in SAS, there is almost always more than one way to
accomplish a task. Beginning programmers may think that there is no
difference between using the WHERE statement and the IF statement to
subset your data set. Knowledgeable programmers know that, depending on
the situation, sometimes one statement is more appropriate than the other.
This list has nothing to do with SAS. It has to do with statistical
software that is about 10 years ahead of SAS in functionality.
--
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University
|