| The OPTMODEL Procedure |
The DO UNTIL loop executes the specified sequence of statements repeatedly until the logic-expression, evaluated after the statements , returns true (a nonmissing nonzero value).
For example, the following code outputs the values 1 and 2:
proc optmodel;
number i;
i = 1;
do until (i=3);
put i;
i=i+1;
end;
Note that multiple criteria can be introduced using expression operators, as in the following example:
do until (i=3 and j=7);
For a list of expression operators, see Table 6.3.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.