Assigning Values Conditionally Using SELECT Groups
The Basics of Using SELECT Groups
You can use SELECT groups in DATA
steps to perform conditional processing.
Syntax, SELECT group:
SELECT <(select-expression)>;
WHEN-1 (when-expression-1<...,
when-expression-n>) statement;
<...WHEN-n (when-expression-1 <...,
when-expression-n>) statement;>
<OTHERWISE statement;>
END;
|
Get SAS Certification Prep Guide, 4th 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.