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
   58   59   60   61   62   63   64   65   66   67   68