Page 63 - SAS_manual
P. 63
Find out square of odd 1 to 20 natural no’s
Program 6.13: Output:
DO UNTIL STATEMENT
Syntax:
DO until (condition);
SAS statement;
END;
The above syntax executes until condition is true. This means if condition is false then executes
SAS statement otherwise stop. But condition will be checked only at the end of the loop.
Lets take an example for add the numbers up to 500.
Program 6.14: Output:
SAS HANDBOOK | VISIT:: http://nikhilanalytics.com 63

