| Date: | Mon, 18 Nov 2002 12:52:32 EST |
| Reply-To: | Erik013@AOL.COM |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Erik013@AOL.COM |
| Subject: | Re: basic SAS question |
|
| Content-Type: | text/plain; charset="US-ASCII" |
Dave,
The do loop counts from 9 (true <= 10), 10 (true <= 10) and 11 (false <= 10).
When it hits the false condition, it drops out of the loop. Your second PUT
statement is outside the loop and since i still has the value of 11, it
writes it out, as your log example shows.
Erik
Erik S. Larsen
Independent Consultant
PO Box 505
Charleston, SC 29401
A SAS Alliance Consulting Partner Silver Member
A SAS Certified Professional V8
(843) 367-2862 (SC office)
(703) 568-3083 (VA office)
(801) 681-3281 (fax)
|