Certification Summary---Generating Data with DO loops
From BingWiki
[edit]
Example
In the following program, complete the statement so that the program stops generating observations when Distance reaches 250 miles or when 10 gallons of fuel have been used.
data work.go250; set perm.cars; do gallons=1 to 10 ....; Distance=gallons*mpg; output; end; run;
a.while(distance <250) b.when(distance >250) c.over(distance le 250) d.until(distance =250)
Correct answer:a
The WHILE expression causes the DO loop to stop executing when the value of Distance becomes equal to or greater than 250.

