Assigning Values Conditionally Using SELECT Groups
Overview
This statement...
|
Performs this action...
|
---|---|
SELECT |
begins a SELECT group.
|
WHEN |
identifies SAS statements that
are executed when a particular condition is true.
|
OTHERWISE
(optional) |
specifies a statement to be
executed if no WHEN condition is met.
|
END |
ends a SELECT group.
|
General form, SELECT group:
SELECT
<(select-expression) ... |
Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.