Using Conditional Clauses with the Iterative DO Statement
DO WHILE (expression); DO UNTIL(expression); DO index-variable=start TO stop BY increment;
data work.invest; do until(Capital>=50000); Year+1; capital+2000; capital+capital*.10; end; run;
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.