|
Chapter Contents |
Previous |
Next |
| Language Reference |
Note that the incrementing is done before the WHILE expression is tested. The following example demonstrates the incremeting:
x=1;
do while(x<100);
x+1;
end;
print x; /* x=100 */
The next example increments the starting value by 2:
y=1;
do x=1 to 100 by 2 while(y<200);
y=y#x;
end; /* at end of loop, x=11 and y=945 */
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.