LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments:   To: sas-l@uga.edu
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


Back to: Top of message | Previous page | Main SAS-L page