| Date: | Thu, 26 Jul 2007 16:59:53 -0000 |
| Reply-To: | sas_9264 <Shiping9264@GMAIL.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | sas_9264 <Shiping9264@GMAIL.COM> |
| Organization: | http://groups.google.com |
| Subject: | skip a loop to next in a sas macro |
|
| Content-Type: | text/plain; charset="iso-8859-1" |
|---|
Hi, I have following test code:
%macro test2;
%do i = 1 %to 5;
%if i = 3 %then %goto continue;
%put i = &i.;
%continue:
%end;
run;
%mend;
%test2
it output to log as:
i = 1
i = 2
i = 3
i = 4
i = 5
what I expect:
i = 1
i = 2
i = 4
i = 5
What do I miss to get expect result?
Thanks a lot,
shiping
|